Skip to main content

A simpler wrapper for aiomysql

Project description

AioMySimple

Licence: GPL v3

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


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)

Uploaded Source

Built Distribution

aiomysimple-0.2.0-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page