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.0rc0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 846964810e2a77fbcbc3105910da3713ccb77b0dde0a8a8f3167f025b7123b2e |
|
MD5 | c03e77a58cd2587e3cbb8a2b2f3489c2 |
|
BLAKE2b-256 | c1653a2537ab89c7747ab48fa2ee777c24d04ae7e91486c4f2502faa3516bf4b |
Close
Hashes for django_pyodbc_lb-1.11.0.0rc0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d250f82dcef56e7aca630ed2d58af6957ed614ca6f160beadb096392f6e4a27 |
|
MD5 | 14610119fc8968d063c515b73332afd5 |
|
BLAKE2b-256 | d0a2f68925f63d2f372d30ea037362bc86645b62f8a7b1ded05c10c76a432de9 |