Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.39 KB

api_older.rst

File metadata and controls

51 lines (37 loc) · 1.39 KB

Low-level (older) API

Note: all query methods are coroutines.

Select, update, delete

peewee_async.execute

peewee_async.get_object

peewee_async.create_object

peewee_async.delete_object

peewee_async.update_object

peewee_async.prefetch

Transactions

Transactions required Python 3.5+ to work, because their syntax is based on async context managers.

Important note transactions rely on data isolation on asyncio per-task basis. That means, all queries for single transaction should be performed within same task.

peewee_async.atomic

peewee_async.savepoint

peewee_async.transaction

Aggregation

peewee_async.count

peewee_async.scalar

Databases

peewee_async.PostgresqlDatabase

peewee_async.PooledPostgresqlDatabase

peewee_asyncext.PostgresqlExtDatabase

peewee_asyncext.PooledPostgresqlExtDatabase