Skip to main content

Extensions to Django for use with MySQL/MariaDB

Project description

https://badge.fury.io/py/django-mysql.png https://travis-ci.org/adamchainz/django-mysql.png?branch=master https://coveralls.io/repos/adamchainz/django-mysql/badge.svg https://pypip.in/d/django-mysql/badge.png https://readthedocs.org/projects/django-mysql/badge/?version=latest Code Health
The dolphin-pony - proof that cute + cute = double cute.
The dolphin-pony - proof that cute + cute = double cute.

Django-MySQL is a non-inventively named package that helps you use some MySQL/MariaDB-specific features in the world of Django.

What kind of features?

Here’s a short list of what’s inside:

  • QuerySet extensions - ‘smart’ iteration, approx_count for quick estimates of count(), quick pt-visual-explain of the underlying query

  • Status variable inspection and utility methods

  • User locks - use MySQL as a locking server between your servers

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

Requirements

Tested with:

  • Python: 2.7, 3.3, 3.4

  • Django: 1.7

  • MySQL: 5.5, 5.6 / MariaDB: 5.5, 10.0, 10.1

  • mysqlclient: 1.3.5 (Python 3 compatible version of MySQL-python)

Any combination of these should be good, and also MySQL-python should work since it’s just an older version of mysqlclient.

History

0.1.3 (2015-03-08)

  • Added pt_visual_explain integration on QuerySet

  • Added soundex-based field lookups for the ORM

0.1.2 (2015-03-01)

  • Added get_many to GlobalStatus

  • Added wait_until_load_low to GlobalStatus which allows you to wait for any high load on your database server to dissipate.

  • Added smart iteration classes and methods for QuerySets that allow efficient iteration over very large sets of objects slice-by-slice.

0.1.1 (2015-02-23)

  • Added Model and QuerySet subclasses which add the approx_count method

0.1.0 (2015-02-12)

  • First release on PyPI

  • Locks

  • GlobalStatus and SessionStatus

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-0.1.4.tar.gz (36.1 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-0.1.4-py2.py3-none-any.whl (17.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django-mysql-0.1.4.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-mysql-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a07302fe4ae10f38efd90b4db1cf42219f0d0abeb01421c7cca50982107c8f2b
MD5 3f8d78069b0750aa7a26c803ed9f9d6d
BLAKE2b-256 3bb373c692406952299bb8c1464520fc06de1d468d882903e5c9ce96f66d008d

See more details on using hashes here.

File details

Details for the file django_mysql-0.1.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_mysql-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 08129876d4d79331637caf53a061239b2a0af7ba64ccca6f50e15b7b0b99a0db
MD5 d918fe7a4ca3c0e6732202cf7aa23c15
BLAKE2b-256 cd03e9df7962ae90d30817341dcefbe8707fcced837c84ee71f455580305596e

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