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.2.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for aiomysimple-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b1d0c651e397b458a1078a73e6ca6f23cfa412133ee29f427d45979731b4528 |
|
MD5 | f13ebd6cd72d1ca25912aec269709515 |
|
BLAKE2b-256 | 69843db3e1391378b73d6ac6c61c169d18e18873ad3648531cb5a51dd46243f0 |