Skip to main content

Django PlanetScale database engine.

Project description

django-psdb-engine

PyPI - Python Version PyPI - Downloads Made for - PlanetScale

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

django_psdb_engine-1.0.6.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

django_psdb_engine-1.0.6-py2.py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 2 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