prefect.server.database.interface
Classes
DBSingleton
Ensures that only one database interface is created per unique key
PrefectDBInterface
An interface for backend-specific SqlAlchemy actions and ORM models.
The REST API can be configured to run against different databases in order maintain
performance at different scales. This interface integrates database- and dialect-
specific configuration into a unified interface that the orchestration engine runs
against.
Methods:
Agent
Artifact
ArtifactCollection
Automation
AutomationBucket
AutomationEventFollower
AutomationRelatedResource
Base
BlockDocument
BlockDocumentReference
BlockSchema
BlockSchemaReference
BlockType
CompositeTriggerChildFiring
ConcurrencyLimit
ConcurrencyLimitV2
Configuration
CsrfToken
Deployment
DeploymentSchedule
Event
EventResource
Flow
FlowRun
FlowRunInput
FlowRunState
Log
SavedSearch
TaskRun
TaskRunState
TaskRunStateCache
Variable
WorkPool
WorkQueue
Worker
create_db
dialect
drop_db
engine
is_db_connectable
run_migrations_downgrade
run_migrations_upgrade
session
session_context
begin_transaction
: if True, the context manager will begin a SQL transaction. Exiting the context manager will COMMIT or ROLLBACK any changes.