interface
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:
dialect
Base
Base class for orm models
Flow
A flow orm model
FlowRun
A flow run orm model
FlowRunState
A flow run state orm model
TaskRun
A task run orm model
TaskRunState
A task run state orm model
Artifact
An artifact orm model
ArtifactCollection
An artifact collection orm model
TaskRunStateCache
A task run state cache orm model
Deployment
A deployment orm model
DeploymentSchedule
A deployment schedule orm model
SavedSearch
A saved search orm model
WorkPool
A work pool orm model
Worker
A worker process orm model
Log
A log orm model
ConcurrencyLimit
A concurrency model
ConcurrencyLimitV2
A v2 concurrency model
CsrfToken
A csrf token model
WorkQueue
A work queue model
Agent
An agent model
BlockType
A block type model
BlockSchema
A block schema model
BlockSchemaReference
A block schema reference model
BlockDocument
A block document model
BlockDocumentReference
A block document reference model
Configuration
An configuration model
Variable
A variable model
FlowRunInput
A flow run input model
Automation
An automation model
AutomationBucket
An automation bucket model
AutomationRelatedResource
An automation related resource model
CompositeTriggerChildFiring
A model capturing a composite trigger’s child firing
AutomationEventFollower
A model capturing one event following another event
Event
An event model
EventResource
An event resource model