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.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for aiomysimple-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5227b39a1a5985faedce5836211bf660604cf4d469bb3ae76e5cf774298d2d41 |
|
MD5 | 1bf43d582aeaed8195221bfe64ca792c |
|
BLAKE2b-256 | e5f1fd5da6f4e0bb6a7359f67f64cc778d6ecf8c1777d6ec5bd26a53c0f1428e |