@taskcast/postgres
v1.5.0
Published
PostgreSQL long-term store adapter for Taskcast.
Downloads
763
Readme
@taskcast/postgres
PostgreSQL long-term store adapter for Taskcast. Provides permanent archival of tasks and events.
Install
pnpm add @taskcast/postgres postgresUsage
import { TaskEngine, MemoryBroadcastProvider, MemoryShortTermStore } from '@taskcast/core'
import { createPostgresAdapter } from '@taskcast/postgres'
const longTermStore = createPostgresAdapter({
url: process.env.DATABASE_URL,
})
const engine = new TaskEngine({
broadcast: new MemoryBroadcastProvider(),
shortTermStore: new MemoryShortTermStore(),
longTermStore,
})Features
- Permanent archival of tasks and events
- Async writes — non-blocking to the main event pipeline
- Built on the
postgresdriver
Part of Taskcast
This is the PostgreSQL adapter package. See the Taskcast monorepo for the full project.
