MySQLer
Easily generate SQL.
Install
pip install MySQLer
Example
import asyncio
from mysqler import Table, ColumnType
from aiomysql import connect
class FavoritefoodTable(Table):
user = ColumnType.BIGINT
food = ColumnType.TEXT
async def main():
conn = await connect(host="127.0.0.1", password="", user="")
async with conn.cursor() as cur:
table = FavoritefoodTable()
await cur.execute(table.create)
await cur.execute(table.insert(user=938194919392, food="steak"))
await conn.commit()
await cur.execute(table.select(user=938194919392))
print(await cur.fetchall())
await conn.close()
asyncio.run(main())
Metadata
Release files for mysqler 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| MySQLer-0.0.4.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| MySQLer-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / MySQLer-0.0.4.tar.gz
| Download URL | MySQLer-0.0.4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a4afb793a7f728ca2ec14294e0a97e3e85cd480ffb46287a784a06993bbf972
|
|
BLAKE2b-256 checksum How to use checksums |
d2595ef4a1477bef910e1450daf2ce140eb790a58b8f37940054298dd03d7671
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / MySQLer-0.0.4-py3-none-any.whl
| Download URL | MySQLer-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e491ecffe78014a5fb1c2011b60dcaaaa238441a91c4b497a7c771392efe2346
|
|
BLAKE2b-256 checksum How to use checksums |
b3b395d7ec7819adbafb6b1bbb8bb1bc0c8d7af9317f9f98258d05f489066c45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|