Expand description
Idempotent schema creation for the libSQL event store. Idempotent schema DDL for the libSQL event store.
Constants§
- CREATE_
EVENTS_ PROJECTION_ INDEX - Event index supporting lifecycle projection scans and filter subqueries.
- CREATE_
EVENTS_ TABLE - Append-only workflow event table.
- CREATE_
NAMESPACES_ CREATED_ AT_ INDEX - Namespace index supporting the
created_atASC (tie-breakname) list ordering. - CREATE_
NAMESPACES_ TABLE - Durable minted-on-use namespace registry (Control-Plane Phase 1).
- CREATE_
OUTBOX_ CLAIMED_ INDEX - Partial index over stale-claim reconciliation candidates.
- CREATE_
OUTBOX_ PENDING_ INDEX - Partial index over claimable rows, supporting the dispatcher’s
status='pending'claim scan ordered byvisible_after. Restricting the index to pending rows keeps it small as completed rows accumulate. - CREATE_
OUTBOX_ TABLE - Durable fan-out dispatch outbox.
- CREATE_
PACKAGES_ TABLE - Runtime-deployed package archives keyed by
(workflow_type, content_hash). - CREATE_
PACKAGE_ ROUTES_ TABLE - Per-workflow-type route pointer for new workflow starts.
- CREATE_
TIMERS_ FIRE_ AT_ INDEX - Timer index supporting due-timer range scans.
- CREATE_
TIMERS_ TABLE - Durable workflow timers table.
- CREATE_
VISIBILITY_ CLOSE_ TIME_ INDEX - Visibility index supporting close-time range filters.
- CREATE_
VISIBILITY_ START_ TIME_ INDEX - Visibility index supporting start-time range filters and ordering.
- CREATE_
VISIBILITY_ STATUS_ INDEX - Visibility index supporting status equality filters.
- CREATE_
VISIBILITY_ TABLE - Workflow visibility projection table.
- CREATE_
VISIBILITY_ WORKFLOW_ TYPE_ INDEX - Visibility index supporting workflow-type equality filters.
Functions§
- ensure_
schema - Ensure the libSQL schema exists on a fresh or previously-created database.