UNPKG

@clickup/pg-microsharding

Version:
19 lines 1.03 kB
import type { Sql } from "./quote"; /** * SLOW: runs a psql with the provided SQL query (or queries) passed as stdin. * - Does NOT run in a single-transaction mode. * - Suitable for slow queries, like indexes and FKs creation. * - Prints progress as it goes (suitable for slow queries). * - Logs the progress unique lines to the log file if it's attached. */ export declare function runSqlProgressNonTransactional(dsn: string, query: Sql, comment: string): Promise<void>; /** * FAST: runs a psql with the provided SQL query (or queries) passed as stdin. * - Runs in a single-transaction mode. * - Suitable for fast queries, like pre-data dump restoration. * - Prints progress as it goes (suitable for slow queries). * - Does NOT log the progress unique lines to the log file (assuming that the * SQL queries are so bulky that it makes no sense to log them). */ export declare function runSqlProgressTransactional(dsn: string, query: Sql, comment: string): Promise<void>; //# sourceMappingURL=runSqlProgress.d.ts.map