A simpler wrapper for aiomysql
Project description
AioMySimple
AioMySimple is a simpler interface for AioMySQL
import aiomysimple
db = aiomysimple.Database(
host="127.0.0.1", port=3306, user="root", password="", db="test_pymysql"
)
my_table = db.get_table("my_table", "id")
async for row in await my_table.search():
print(row["my_key"])
await row.update(my_key=row["my_key"] + 1)
result = await my_table.search()
print((await result[3])["my_key"])
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
aiomysimple-0.1.1.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for aiomysimple-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77051eec193823206b0c8c4f8bc6490e9da81923c49d471133c715100b05f83f |
|
MD5 | 06052baef0ce4c6ed51a1c86b4524d39 |
|
BLAKE2b-256 | 065f5f6a6830acac3a4c8738b4142bd52ddb374347c7f49d91513fd1da42a002 |