django-pyodbc-lb
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',
}
},
}
Release files for django-pyodbc-lb 1.11.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-pyodbc-lb-1.11.0.1.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_pyodbc_lb-1.11.0.1-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 9.4 kB
Release files / django-pyodbc-lb-1.11.0.1.tar.gz
| Download URL | django-pyodbc-lb-1.11.0.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20fb257b047ecc5ee07771b473837ddf69f1b5f5c3ce8ad8cf25ddaad225f756
|
|
BLAKE2b-256 checksum How to use checksums |
58c61008fc3768473bc00188c21ba082c7324b1f400b876b79339d11558ce8e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_pyodbc_lb-1.11.0.1-py2-none-any.whl
| Download URL | django_pyodbc_lb-1.11.0.1-py2-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
4822581383f226a074068dc416b71b33caef76edcd293a96e4c6d9eb555e3f7c
|
|
BLAKE2b-256 checksum How to use checksums |
8573cf3baba7469391845a496dc875642571f9f7d1671c8154c4ac37a70e5605
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |