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/workflow/status/adamchainz/django-mysql/CI/master?style=for-the-badge https://img.shields.io/coveralls/github/adamchainz/django-mysql/master?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:

    • MySQL 5.7+ JSON Field

    • 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

  • Handler API for quicker-than-SQL reads using the ‘NoSQL’ HANDLER commands

  • 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


Release history Release notifications | RSS feed

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-3.10.0.tar.gz (462.5 kB view details)

Uploaded Source

Built Distribution

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

django_mysql-3.10.0-py3-none-any.whl (58.5 kB view details)

Uploaded Python 3

File details

Details for the file django-mysql-3.10.0.tar.gz.

File metadata

  • Download URL: django-mysql-3.10.0.tar.gz
  • Upload date:
  • Size: 462.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for django-mysql-3.10.0.tar.gz
Algorithm Hash digest
SHA256 86fbe92623eb35fa6ece0574293db40b025e7df5bc58bd23b5a3c56bc9db51c7
MD5 bb8d79f96e46caa9903eb0afe308b8f5
BLAKE2b-256 f1950f3e5614dfdf57c25c8e72802539a266e420df5e72b5cbff0637dd6840cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_mysql-3.10.0-py3-none-any.whl
  • Upload date:
  • Size: 58.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for django_mysql-3.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b53a2bbe7507508894251b6c5e9f2f8aa68c5ed9c2d0a91e8ed5908b740cc1
MD5 d22c74093b990dd0f8b30e1a1cde1d40
BLAKE2b-256 f3711e05882382f128f31cf4d86f8db0602c85cf952ff2fb3bb302c4c83609ae

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