@invariant-tech/postgres
v0.1.0-beta.1
Published
PostgreSQL storage adapter for Invariant durable execution engine.
Maintainers
Readme
@invariant-tech/postgres
Production-grade PostgreSQL storage adapter for the Invariant durable execution runtime.
Installation
npm install @invariant-tech/postgres@betaQuick Start
import { postgres } from '@invariant-tech/postgres';
const store = postgres({
connectionString: process.env.DATABASE_URL,
});
await store.initializeSchema();Features
- Transactional atomicity: commits state revisions, event logs, and outbox commands in a single database transaction.
- Optimistic Concurrency Control (OCC) detecting stale transitions.
- Durable lease primitives and runnable-execution discovery for application-owned coordination. The public Beta does not include a complete recovery worker.
Documentation
https://docs.invarianttechnology.com/adapters/postgres
