Skip to main content

Crate runledger_postgres

Crate runledger_postgres 

Source
Expand description

PostgreSQL persistence layer for Runledger durable execution.

This crate owns the SQLx-backed storage and query helpers used by the runtime and application crates. The main entrypoint is the jobs module, which exposes APIs for:

  • queueing, claiming, heartbeating, and completing jobs
  • listing admin/job log data and runtime configuration
  • enqueueing and querying workflow runs and steps

Typical consumers share a DbPool with runledger-runtime, then call the exported jobs functions from application setup, admin APIs, or tests. This crate assumes the matching Runledger schema is already present in the target database.

Modules§

jobs

Structs§

FrameworkConstraintSpec
QueryError

Enums§

Error
QueryErrorCategory

Functions§

classify_framework_constraint
classify_query_error
classify_query_error_with_constraint_classifier
has_framework_constraint_classifier

Type Aliases§

DbPool
DbTx
Result