Skip to main content

Databases.

Project description

Databases

NOT YET READY FOR USE

Databases gives you asyncio support for making SQLAlchemy core queries against a range of databases.

  • Postgres, MySQL, and SQLite support.
  • Queries using SQLAlchemy core.
  • Migrations using Alembic.
$ pip install databases
from databases import Database


database = Database('postgresql://localhost/example')

query = ...
rows = await database.execute()

query = ...
rows = await database.fetchall()

query = ...
row = await database.fetchone()

query = ...
value = await database.fetchval()

Transactions

async with database.transaction():
    ...

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

databases-0.0.1.tar.gz (5.1 kB view hashes)

Uploaded Source

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