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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for django-pooldb-1.2.tar.gz
Algorithm Hash digest
SHA256 2781e287aaa4bbc75941e6f30f2cbd1a9bce6bb93ebe973e8879c04dc14d0e86
MD5 66a508a89dd152a8c9d58dffffa9bdc9
BLAKE2b-256 7f371af04494dee5602e7476c530fee9d5647ba3f7b5e236a4594c4e00c7da93

See more details on using hashes here.

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

Hashes for django_pooldb-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 afc50844631d0de1024715041321a70417c24354c7c1ac4879256847c6ef09ec
MD5 2774eeed667ed89763014b4b07f80c2a
BLAKE2b-256 66e8b29c71ace682ccaafa66dbc2557350f11971cec1ea103d2355d1a028656f

See more details on using hashes here.

Supported by

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