Metadata-Version: 2.1
Name: MySQLer
Version: 0.0.2
Summary: table manager for aiomysql.
Home-page: https://github.com/RextTeam/table-manager.py
Author: DMS
Author-email: masato190411@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# MySQLer

## Install

```bash
pip install MySQLer
```

## Example

```python
from table import Table, StrColumn, IntColumn
from aiomysql import connect
import asyncio

class FavoritefoodTable(Table):
    user = IntColumn()
    food = StrColumn()
    
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())
```


