import { Kysely } from '../../kysely.js' ; import { DialectAdapterBase } from '../dialect-adapter-base.js' ; const LOCK_ID = '3853314791062309107' ; export class PostgresAdapter extends DialectAdapterBase { get supportsTransactionalDdl ( ) : boolean { return true ; } get supportsReturning ( ) : boolean { return true ; } async acquireMigrationLock ( db ) { await db . raw ( `select pg_advisory_xact_lock(${ LOCK_ID })` ) . execute ( ) ; } async releaseMigrationLock ( ) { } }