import { DialectAdapter, PostgresDialect } from "kysely"; //#region src/database/pg-migration-lock.d.ts /** * Sentinel message thrown when another migrator holds the advisory lock. * `runMigrations` matches on it to route into the concurrent-migrator wait. */ declare const MIGRATION_LOCK_BUSY_MESSAGE = "EMDASH_MIGRATION_LOCK_BUSY"; /** * Drop-in replacement for Kysely's `PostgresDialect` whose migration lock * fails fast instead of blocking inside the database. Everything except * `createAdapter` is inherited unchanged, and because it subclasses * `PostgresDialect`, the public dialect type of `emdash/db/postgres` stays * `PostgresDialect` and `instanceof` checks keep working. */ declare class FailFastPostgresDialect extends PostgresDialect { createAdapter(): DialectAdapter; } //#endregion export { FailFastPostgresDialect, MIGRATION_LOCK_BUSY_MESSAGE }; //# sourceMappingURL=pg-migration-lock.d.mts.map