基于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 hashes)
Built Distribution
Close
Hashes for django_pooldb-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afc50844631d0de1024715041321a70417c24354c7c1ac4879256847c6ef09ec |
|
MD5 | 2774eeed667ed89763014b4b07f80c2a |
|
BLAKE2b-256 | 66e8b29c71ace682ccaafa66dbc2557350f11971cec1ea103d2355d1a028656f |