asyncorm.database.backends package¶
Submodules¶
asyncorm.database.backends.postgres_backend module¶
-
class
asyncorm.database.backends.postgres_backend.
PostgresBackend
(conn_data)[source]¶ Bases:
asyncorm.database.backends.sql_base_backend.SQLBaseBackend
PostgresBackend serves as interface with the postgres database.
-
get_cursor
(query, forward, stop)[source]¶ Get a new cursor.
Parameters: - query (dict) – Query to be constructed.
- forward (int) – Next step in the cursor.
- stop (int) – Last step in the cursorself.
Returns: New Cursor
Return type:
-
get_sync_connection
(loop)[source]¶ Get the connection synchronously.
Parameters: loop – loop that will manage the coroutine. Returns: the postgres connection Return type: asyncpg.connection.Connection
-