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 details)
Built Distribution
File details
Details for the file aiomysimple-0.2.0.tar.gz
.
File metadata
- Download URL: aiomysimple-0.2.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f4f646265979d95dec8525df2d269dc9dad522ebbd2b79022b14319f91e534e |
|
MD5 | 10955e6ec55666c937a25d6e1b85a762 |
|
BLAKE2b-256 | 26db031019fc785290b1f7aa6c805811a1f98186b21a7271fa0c5aac49a5c1be |
File details
Details for the file aiomysimple-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: aiomysimple-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b1d0c651e397b458a1078a73e6ca6f23cfa412133ee29f427d45979731b4528 |
|
MD5 | f13ebd6cd72d1ca25912aec269709515 |
|
BLAKE2b-256 | 69843db3e1391378b73d6ac6c61c169d18e18873ad3648531cb5a51dd46243f0 |