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
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mysqlclient-collate-2.1.1.post2.tar.gz.
File metadata
- Download URL: mysqlclient-collate-2.1.1.post2.tar.gz
- Upload date:
- Size: 87.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c98e4e2cb8863898ce4c2b590d8ed44e8b33165f12d77556c34f8bb6a14aab4
|
|
| MD5 |
75cfbf8efc38e2c6cace547539209d9d
|
|
| BLAKE2b-256 |
8c6fae76ffe0dc52ec56697bbdec0879befc57e7d8c69a8201c7ac276c755c11
|
File details
Details for the file mysqlclient_collate-2.1.1.post2-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: mysqlclient_collate-2.1.1.post2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 173.6 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d67d1eed148a5ae7e955f2fc1b6167f6dc385d8b812078b9cebc5863adc9a9ff
|
|
| MD5 |
13bada219bef3aabc842013834966f33
|
|
| BLAKE2b-256 |
c7fa954f2bd46dc9ab3526bdaf59ae4c9dfb5bb89524dfe75cdc23283bb3ed76
|
File details
Details for the file mysqlclient_collate-2.1.1.post2-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: mysqlclient_collate-2.1.1.post2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 173.5 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7884c06f23d731676916d2a36d021a5669d374f99f8888c91ef47c4a949d6bfc
|
|
| MD5 |
b825ac4d2f01833153ec0150ac1598fa
|
|
| BLAKE2b-256 |
d09a147bce3c8ffa72da6b1ec067c478bf191b0cc6c3c79af4adaa4fa77919f4
|
File details
Details for the file mysqlclient_collate-2.1.1.post2-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: mysqlclient_collate-2.1.1.post2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 174.5 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faa37c715858d0b486448a1236b1ad5ff008b5f8a2a0b383e0b72d4f353f6718
|
|
| MD5 |
67dbb43fee7c31e2087a2b8457e4ac8a
|
|
| BLAKE2b-256 |
ed5a24a051d68fb23b4a02a21301e3845772239a038d9357a159d311993ade2a
|
File details
Details for the file mysqlclient_collate-2.1.1.post2-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: mysqlclient_collate-2.1.1.post2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 174.5 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2429c9915ae10e5fb16a9d8c7f9de9d542c70c4c35861f403121d4beb5a83c01
|
|
| MD5 |
080a59c9689f823bc48ad2c86a0613b9
|
|
| BLAKE2b-256 |
0aacb2cfbefbb08835d019a3c187e976f6ae834afb4bb1d09db27183aa708a36
|
File details
Details for the file mysqlclient_collate-2.1.1.post2-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: mysqlclient_collate-2.1.1.post2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 174.1 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e071c70aff80181989fe4d0f6c09c57530b4f42bdb13be43387b42bb2d730bc3
|
|
| MD5 |
987a3b5dc9917ae121fcba67aac6e674
|
|
| BLAKE2b-256 |
b50e0bbbf04ca2340e8d49d74868fa68bde58d5cf09540f8f27970d230724763
|