Giter Site home page Giter Site logo

marco-santamaria / django-mysql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adamchainz/django-mysql

0.0 2.0 0.0 1.47 MB

:dolphin: :horse: Extensions to Django for use with MySQL/MariaDB

Home Page: http://django-mysql.readthedocs.org/

License: BSD 3-Clause "New" or "Revised" License

Shell 0.33% Makefile 0.27% Python 99.40%

django-mysql's Introduction

Django-MySQL

https://travis-ci.org/adamchainz/django-mysql.svg?branch=master https://readthedocs.org/projects/django-mysql/badge/?version=latest
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?

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 http://django-mysql.readthedocs.org/en/latest/exposition.html .

Requirements

Tested with all combinations of:

  • Python: 2.7, 3.4, 3.5
  • Django: 1.7, 1.8, 1.9, master
  • MySQL: 5.5, 5.6, 5.7 / MariaDB: 5.5, 10.0, 10.1
  • mysqlclient: 1.3.7 (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 - however you should probably just upgrade.

Please note that some features are restricted to particular databases, database versions or Django versions - all such restrictions can be found in the documentation for each feature.

Documentation

Every detail documented on Read The Docs.

django-mysql's People

Contributors

adamchainz avatar glogiotatidis avatar graingert avatar lwiecek avatar marco-santamaria avatar michaelaquilina avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.