prefect.server.utilities.database
Utilities for interacting with Prefect REST API database and ORM layer.
Prefect supports both SQLite and Postgres. Many of these utilities
allow the Prefect REST API to seamlessly switch between the two.
Functions
db_injector
generate_uuid_postgresql
generate_uuid_sqlite
bindparams_from_clause
datetime_or_interval_add_postgresql
date_diff_seconds_postgresql
current_timestamp_sqlite
date_add_sqlite
interval_add_sqlite
date_diff_sqlite
date_diff_seconds_sqlite
sqlite_json_operators
sqlite_greatest_as_max
get_dialect
Classes
GenerateUUID
Platform-independent UUID default generator.
Note the actual functionality for this class is specified in the
compiles
-decorated functions below