Skip to main content

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)

Source distribution for mysqler 0.0.4
File Size Uploaded
MySQLer-0.0.4.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mysqler 0.0.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.1.0

2 release files

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page