import type { SqlDependency } from "../core/types.ts"; import { Migrator, type MigratorOptions } from "../core/migrator.ts"; export interface PostgresMigratorOptions { sql: unknown; directory: URL; } /** * Create a standardish Postgres Migrator based on the filesystem and an sql connection from [postgres.js](https://github.com/porsager/postgres) * * ```js * const sql = postgres(…) * * const migrator = getPostgresMigratorOptions({ * sql, * directory: new URL("./migrations/", import.meta.url) * }) * * ``` */ export declare function getPostgresMigratorOptions({ sql, directory, }: PostgresMigratorOptions): MigratorOptions; /** @deprecated use {@link getPostgresMigratorOptions} */ export declare const getNodePostgresMigratorOptions: typeof getPostgresMigratorOptions; /** * This is a syntax sugar for `new Migrator(getPostgresMigratorOptions(...))` * * @param {PostgresMigratorOptions} options */ export declare function getPostgresMigrator(options: PostgresMigratorOptions): Migrator; /** @deprecated use {@link getPostgresMigrator} */ export declare const getNodePostgresMigrator: typeof getPostgresMigrator; //# sourceMappingURL=postgres.d.ts.map