configurations
prefect.server.database.configurations
Classes
ConnectionTracker
A test utility which tracks the connections given out by a connection pool, to make it easy to see which connections are currently checked out and open.
Methods:
track_pool
on_connect
on_close
on_close_detached
clear
BaseDatabaseConfiguration
Abstract base class used to inject database connection configuration into Prefect.
This configuration is responsible for defining how Prefect REST API creates and manages database connections and sessions.
Methods:
unique_key
Returns a key used to determine whether to instantiate a new DB interface.
is_inmemory
Returns true if database is run in memory
begin_transaction
Enter a transaction for a session
AsyncPostgresConfiguration
Methods:
is_inmemory
Returns true if database is run in memory
AioSqliteConfiguration
Methods:
setup_sqlite
Issue PRAGMA statements to SQLITE on connect. PRAGMAs only last for the duration of the connection. See https://www.sqlite.org/pragma.html for more info.
begin_sqlite_conn
begin_sqlite_stmt
is_inmemory
Returns true if database is run in memory