/** * @personal-blog/database-postgres — EPPP PostgreSQL adapter package. * * [E00-S03-T02] this package is the single owner of the PostgreSQL driver * stack: it is the only workspace package allowed to import `pg` and Kysely. * Every piece of the workspace that talks to the database goes through this * boundary — the pool, the query builder dialect and the adapter API this * package will expose — so no other package ever imports the driver directly. * * This module is the driver boundary: it imports the PostgreSQL driver (`pg`) * and Kysely and re-exports the pieces the adapter is built on — the driver * surface (E00-S03-T02), the migration ledger (E00-S03-T03) and the migration * advisory lock (E00-S03-T04). The failure diagnostic (E00-S03-T05) lands in * a later story; until then the re-exports keep the driver reachable only * from here — the isolation is real, not a placeholder. */ import { Pool } from 'pg'; import { Kysely, PostgresDialect } from 'kysely'; export { Pool, Kysely, PostgresDialect }; export { MigrationLedger, MIGRATION_LEDGER_TABLE } from './ledger.js'; export { MigrationLock, MIGRATION_LOCK_KEY } from './lock.js';