Django PlanetScale database engine.
Project description
django-psdb-engine
This package helps you interact with your PlanetScale databases in your Django projects in an easier way.
Usage
Install the package by running the following command.
pip install django-psdb-engine
And finally, update your DATABASES
configuration and change the ENGINE
field.
DATABASES = {
'default': {
'ENGINE': 'django_psdb_engine',
...
'OPTIONS': {'ssl': {'ca': ...}}
}
}
Note: Since Django uses the UTF-8
charset and it points to utf8mb3
in MySQL and this charset is deprecated in MySQL 8, you may need to add {"charset": "utf8mb4"}
and migrate your chanegs with no problem.
- 'OPTIONS': {'ssl': {'ca': ...}}
+ 'OPTIONS': {'ssl': {'ca': ...}, 'charset': 'utf8mb4'}
Requirements
- django >= 2.2
- mysqlclient >= 2.1.0
License
Free software: MIT license
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
Built Distribution
File details
Details for the file django_psdb_engine-1.0.6.tar.gz
.
File metadata
- Download URL: django_psdb_engine-1.0.6.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e04ff0fa110e5592883300191fa973b1f679ad001a6988b1fcd521a22a31ff33 |
|
MD5 | 451b07ddfc8269d6052c24b1dc7e1285 |
|
BLAKE2b-256 | 140503c02ca103ab8a1e082f020c80341f3f251997a8b0ff309b0bdbee56d101 |
File details
Details for the file django_psdb_engine-1.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: django_psdb_engine-1.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6e60a5cda4c39525b577560ff3b379cf5eca37875408355c760ea17fbd4d5a3 |
|
MD5 | 0c9faf25ac89d3727ca75ae8a96af15e |
|
BLAKE2b-256 | fee1e0819436e26620b7ae1982810f245f469e3ea3f053c7d2cf348f55a0cdcf |