Skip to main content

Django-MySQL extends Django's built-in MySQL and MariaDB support their specific features not available on other databases.

Project description

https://img.shields.io/readthedocs/django-mysql?style=for-the-badge https://img.shields.io/github/actions/workflow/status/adamchainz/django-mysql/main.yml.svg?branch=main&style=for-the-badge https://img.shields.io/badge/Coverage-100%25-success?style=for-the-badge https://img.shields.io/pypi/v/django-mysql.svg?style=for-the-badge https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge pre-commit
The dolphin-pony - proof that cute + cute = double cute.
The dolphin-pony - proof that cute + cute = double cute.

Django-MySQL extends Django’s built-in MySQL and MariaDB support their specific features not available on other databases.

What kind of features?

Includes:

  • QuerySet extensions:

    • ‘Smart’ iteration - chunked pagination across a large queryset

    • approx_count for quick estimates of count()

    • Query hints

    • Quick pt-visual-explain of the underlying query

  • Model fields:

    • MariaDB Dynamic Columns for storing dictionaries

    • Comma-separated fields for storing lists and sets

    • ‘Missing’ fields: differently sized BinaryField/TextField classes, BooleanFields represented by BIT(1)

  • ORM expressions for over 20 MySQL-specific functions

  • A new cache backend that makes use of MySQL’s upsert statement and does compression

  • Status variable inspection and utility methods

  • Named locks for easy locking of e.g. external resources

  • Table lock manager for hard to pull off data migrations

To see them all, check out the exposition at https://django-mysql.readthedocs.io/en/latest/exposition.html .

Requirements and Installation

Please see https://django-mysql.readthedocs.io/en/latest/installation.html .

Documentation

Every detail documented on Read The Docs.

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_mysql-4.17.0.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

django_mysql-4.17.0-py3-none-any.whl (55.3 kB view details)

Uploaded Python 3

File details

Details for the file django_mysql-4.17.0.tar.gz.

File metadata

  • Download URL: django_mysql-4.17.0.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for django_mysql-4.17.0.tar.gz
Algorithm Hash digest
SHA256 201efe2f9128777159b019cff8a6c1f35e891c668bb3b98b45c616f25ed5cb5b
MD5 4294dc43aa67e3b0854136deb5a60698
BLAKE2b-256 62005f5e723193db2b31abcf130303b0c9584ee70b69502f3ce146bff3c314c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_mysql-4.17.0.tar.gz:

Publisher: main.yml on adamchainz/django-mysql

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_mysql-4.17.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_mysql-4.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d59545cfbd55edfa04c99db2e90e9f63c786b16da4c7b8fd0425f5d032dde149
MD5 16a14bce27c9276e1f9a60b2f0b209b1
BLAKE2b-256 b5dd94da92d5d44f7a132c92b18954ec61c6608e65086602e2f0e52985ce47c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_mysql-4.17.0-py3-none-any.whl:

Publisher: main.yml on adamchainz/django-mysql

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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