Django backend for Microsoft SQL Server with load balancer support
Project description
Database engine based on django-pyodbc-azure that overrides database connection. If OPTIONS dictionary contains load_balancer it must be an object with choose method which returnds list of hosts.
Example configuration:
DATABASES = { 'default': { 'ENGINE': 'sql_server_lb', 'NAME': 'database', 'USER': 'user', 'PASSWORD': 'password' 'HOST': 'host', # Not used 'PORT': 1433, 'COMMAND_TIMEOUT': 360, 'CONN_MAX_AGE': 3600, # Persistent connection limited to an hour 'OPTIONS': { 'load_balancer': LoadBalancer('database'), 'driver': 'FreeTDS', 'host_is_server': True, 'extra_params': 'TDS_Version=7.3', } }, }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-pyodbc-lb-1.11.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20fb257b047ecc5ee07771b473837ddf69f1b5f5c3ce8ad8cf25ddaad225f756 |
|
MD5 | f6b29c5b5c72ea8a18be289fddd8f137 |
|
BLAKE2b-256 | 58c61008fc3768473bc00188c21ba082c7324b1f400b876b79339d11558ce8e3 |
Close
Hashes for django_pyodbc_lb-1.11.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4822581383f226a074068dc416b71b33caef76edcd293a96e4c6d9eb555e3f7c |
|
MD5 | 7abfcd303277cf3ea0af7723d9404027 |
|
BLAKE2b-256 | 8573cf3baba7469391845a496dc875642571f9f7d1671c8154c4ac37a70e5605 |