基于DBUtils.PooledDB封装的Django数据库连接引擎
Project description
django-pooldb
基于DBUtils.PooledDB封装的Django数据库连接池引擎 Django database connection pool engine based on DBUtils.PooledDB
pip install django-pooldb
Using django-pooldb
Add the following to your settings.py:
DATABASES = {
'default': {
'ENGINE': 'pooldb.backends.mysql',
'NAME': 'test',
'HOST': '127.0.0.1',
'PORT': 13306,
'USER': 'root',
'PASSWORD': '123456',
'OPTIONS': { # dbutils extra params
'maxconnections': 100,
},
}
}
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
django-pooldb-1.2.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-pooldb-1.2.tar.gz.
File metadata
- Download URL: django-pooldb-1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2781e287aaa4bbc75941e6f30f2cbd1a9bce6bb93ebe973e8879c04dc14d0e86
|
|
| MD5 |
66a508a89dd152a8c9d58dffffa9bdc9
|
|
| BLAKE2b-256 |
7f371af04494dee5602e7476c530fee9d5647ba3f7b5e236a4594c4e00c7da93
|
File details
Details for the file django_pooldb-1.2-py3-none-any.whl.
File metadata
- Download URL: django_pooldb-1.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afc50844631d0de1024715041321a70417c24354c7c1ac4879256847c6ef09ec
|
|
| MD5 |
2774eeed667ed89763014b4b07f80c2a
|
|
| BLAKE2b-256 |
66e8b29c71ace682ccaafa66dbc2557350f11971cec1ea103d2355d1a028656f
|