Packages
@loop-engine/adapter-postgres
@loop-engine/adapter-postgres provides schema setup and a PostgreSQL store interface target for runtime persistence.
Install
1npm install @loop-engine/adapter-postgres pgSchema bootstrap
1createSchema(pool: PgPoolLike): Promise<void>createSchema() creates:
loop_instancesloop_transitions
1import { Pool } from "pg"2import { createSchema } from "@loop-engine/adapter-postgres"3 4const pool = new Pool({ connectionString: process.env.DATABASE_URL })5await createSchema(pool)Store factory
1postgresStore(pool: PgPoolLike): LoopStoreProduction notes
- Use
pgconnection pooling. - Keep SSL, idle timeout, and max connection settings explicit in deployment config.
- Treat this package as schema-ready but runtime-incomplete in
v0.1.0.