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
File details
Details for the file django-pyodbc-lb-1.11.0.1.tar.gz
.
File metadata
- Download URL: django-pyodbc-lb-1.11.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
20fb257b047ecc5ee07771b473837ddf69f1b5f5c3ce8ad8cf25ddaad225f756
|
|
MD5 |
f6b29c5b5c72ea8a18be289fddd8f137
|
|
BLAKE2b-256 |
58c61008fc3768473bc00188c21ba082c7324b1f400b876b79339d11558ce8e3
|
File details
Details for the file django_pyodbc_lb-1.11.0.1-py2-none-any.whl
.
File metadata
- Download URL: django_pyodbc_lb-1.11.0.1-py2-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4822581383f226a074068dc416b71b33caef76edcd293a96e4c6d9eb555e3f7c
|
|
MD5 |
7abfcd303277cf3ea0af7723d9404027
|
|
BLAKE2b-256 |
8573cf3baba7469391845a496dc875642571f9f7d1671c8154c4ac37a70e5605
|