Metadata-Version: 2.1
Name: MySQLer
Version: 0.0.4
Summary: table manager for aiomysql.
Home-page: https://github.com/RextTeam/MySQLer
Author: DMS
Author-email: masato190411@gmail.com
Maintainer: Rext
License: UNKNOWN
Project-URL: Documentation, https://rextteam.github.io/MySQLer/
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# MySQLer
Easily generate SQL.

## Install
```bash
pip install MySQLer
```

## Example
```python
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())
```

