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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88bb670e00a842be7037be30986c52556685af2b275333c6eea36a4e8cb369ef |
|
MD5 | b338088fc2ad280a9dbd3b1cbb6fc9fa |
|
BLAKE2b-256 | ed751686e74edc1b49014924da6001060bdc03f1f2b2b8e5ff8cda84ed693e45 |
Close
Hashes for django_pyodbc_lb-1.11.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad32368bac5509d3d784463979162a2b5c067f2464f43c6482811fa01e7026bf |
|
MD5 | b2b673f39b837cf2d3632d4a6a12e887 |
|
BLAKE2b-256 | ee0c0b2d9f60b1eb1d0114a0ed647d00b87908e3b7254ac718b9224180b8b83e |