Skip to main content

Python interface to MySQL

Project description

mysqlclient-collate

NOTE: These features have been merged upstream into mysqlclient 2.2.0. This package is now archived. Please switch to mysqlclient>=2.2 instead.


Fork of mysqlclient which adds support for setting collation via connection options.

Setting collation is necessary for servers that do not use the default, and for Django queries using CAST statements, which are prevalent in Wagtail 4. For more background, see the following discussions:

Usage

Make sure you have MySQL or MariaDB C connector, and a C compiler installed.

IMPORTANT: If you already have mysqlclient installed, uninstall it before installing this fork. Both projects use the same module name and cannot be installed at the same time.

pip uninstall mysqlclient
pip install mysqlclient-collate

For use in a Django project, set your database connection as so:

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.mysql",
        "HOST": "",
        "NAME": "",
        "USER": "",
        "PASSWORD": "",
        "OPTIONS": {
            "charset": "utf8mb4",
            "collation": "utf8mb4_unicode_ci",
        },
    }
}

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

mysqlclient-collate-2.1.1.post2.tar.gz (87.2 kB view details)

Uploaded Source

Built Distributions

mysqlclient_collate-2.1.1.post2-cp311-cp311-win_amd64.whl (173.6 kB view details)

Uploaded CPython 3.11 Windows x86-64

mysqlclient_collate-2.1.1.post2-cp310-cp310-win_amd64.whl (173.5 kB view details)

Uploaded CPython 3.10 Windows x86-64

mysqlclient_collate-2.1.1.post2-cp39-cp39-win_amd64.whl (174.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

mysqlclient_collate-2.1.1.post2-cp38-cp38-win_amd64.whl (174.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

mysqlclient_collate-2.1.1.post2-cp37-cp37m-win_amd64.whl (174.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

File details

Details for the file mysqlclient-collate-2.1.1.post2.tar.gz.

File metadata

File hashes

Hashes for mysqlclient-collate-2.1.1.post2.tar.gz
Algorithm Hash digest
SHA256 6c98e4e2cb8863898ce4c2b590d8ed44e8b33165f12d77556c34f8bb6a14aab4
MD5 75cfbf8efc38e2c6cace547539209d9d
BLAKE2b-256 8c6fae76ffe0dc52ec56697bbdec0879befc57e7d8c69a8201c7ac276c755c11

See more details on using hashes here.

File details

Details for the file mysqlclient_collate-2.1.1.post2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlclient_collate-2.1.1.post2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d67d1eed148a5ae7e955f2fc1b6167f6dc385d8b812078b9cebc5863adc9a9ff
MD5 13bada219bef3aabc842013834966f33
BLAKE2b-256 c7fa954f2bd46dc9ab3526bdaf59ae4c9dfb5bb89524dfe75cdc23283bb3ed76

See more details on using hashes here.

File details

Details for the file mysqlclient_collate-2.1.1.post2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlclient_collate-2.1.1.post2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7884c06f23d731676916d2a36d021a5669d374f99f8888c91ef47c4a949d6bfc
MD5 b825ac4d2f01833153ec0150ac1598fa
BLAKE2b-256 d09a147bce3c8ffa72da6b1ec067c478bf191b0cc6c3c79af4adaa4fa77919f4

See more details on using hashes here.

File details

Details for the file mysqlclient_collate-2.1.1.post2-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlclient_collate-2.1.1.post2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 faa37c715858d0b486448a1236b1ad5ff008b5f8a2a0b383e0b72d4f353f6718
MD5 67dbb43fee7c31e2087a2b8457e4ac8a
BLAKE2b-256 ed5a24a051d68fb23b4a02a21301e3845772239a038d9357a159d311993ade2a

See more details on using hashes here.

File details

Details for the file mysqlclient_collate-2.1.1.post2-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlclient_collate-2.1.1.post2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2429c9915ae10e5fb16a9d8c7f9de9d542c70c4c35861f403121d4beb5a83c01
MD5 080a59c9689f823bc48ad2c86a0613b9
BLAKE2b-256 0aacb2cfbefbb08835d019a3c187e976f6ae834afb4bb1d09db27183aa708a36

See more details on using hashes here.

File details

Details for the file mysqlclient_collate-2.1.1.post2-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for mysqlclient_collate-2.1.1.post2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e071c70aff80181989fe4d0f6c09c57530b4f42bdb13be43387b42bb2d730bc3
MD5 987a3b5dc9917ae121fcba67aac6e674
BLAKE2b-256 b50e0bbbf04ca2340e8d49d74868fa68bde58d5cf09540f8f27970d230724763

See more details on using hashes here.

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