Skip to main content

基于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


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)

Uploaded Source

Built Distribution

django_pooldb-1.2-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page