Alter ENGINE to mysql_pool. Add some DATABASE_POOL_ARGS for example:
DATABASE_POOL_ARGS = {
'max_overflow': 10,
'pool_size':5,
'recycle':300
}
Optionally add a sa_pool_key value so we don’t need to hash each db.
Example:
'two': {
'ENGINE': 'mysql_pool',
'sa_pool_key': 'two',
...
}
Also optionally, you can add a ‘backend’ key with the importable path to the backend you want to use.
'backend': 'mysql_pymysql.base'
Currently, we only support mysql_pymysql and the default django mysql backend.
Require SQL Alchemy 0.7 for the events.
TODO:
some proper tests
make test utils work with multiple databases, by doing features.confirm on each database connnection, as opposed to just the first.
Metadata
Release files for django-mysql-pool 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-mysql-pool-0.2.tar.gz | 3.9 kB | Without provenance | Details for django-mysql-pool-0.2.tar.gz |
Release files / django-mysql-pool-0.2.tar.gz
| Download URL | django-mysql-pool-0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebdb79e5bb8288421c12f9311c1901834f08747a82242a74c2c6ca12d1bafb34
|
|
BLAKE2b-256 checksum How to use checksums |
e4178611a58f4a3f8f220f5a67dba30dda51ab9ad25ed78edca120d6a65498c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-mysql-pool 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.