UNPKG

pg-dump-restore

Version:

Nodejs wrapper around the pg_dump and pg_restore

58 lines (57 loc) 1.77 kB
import { ConnectionOptions, FormatEnum } from './common'; import { ExecaChildProcess } from 'execa'; export declare type DumpOptionsType = { filePath: string; format?: FormatEnum; dataOnly?: boolean; blobs?: boolean; version?: boolean; noBlobs?: boolean; clean?: boolean; create?: boolean; extensionPattern?: string[]; encoding?: string; jobs?: number; schemaPattern?: string[]; excludeSchemaPattern?: string[]; tablePattern?: string[]; excludeTablePattern?: string[]; excludeTableDataPattern?: string[]; noOwner?: boolean; noReconnect?: boolean; schemaOnly?: boolean; verbose?: boolean; noAcl?: boolean; compress?: number; binaryUpgrade?: boolean; columnInserts?: boolean; disableDollarQuoting?: boolean; disableTriggers?: boolean; enableRowSecurity?: boolean; extraFloatDigits?: number; ifExists?: boolean; includeForeignData?: string; inserts?: boolean; loadViaPartitionRoot?: boolean; lockWaitTimeout?: number; noComments?: boolean; noPublications?: boolean; noSecurityLabels?: boolean; noSubscriptions?: boolean; noSync?: boolean; noSynchronizedSnapshots?: boolean; noTableSpaces?: boolean; noToastCompression?: boolean; noUnloggedTableData?: boolean; onConflictDoNothing?: boolean; quoteAllIdentifiers?: boolean; rowsPerInsert?: number; sectionName?: string[]; serializableDeferrable?: boolean; snapshotName?: string; strictNames?: boolean; useSetSessionAuthorization?: boolean; roleName?: string; noPrivileges?: boolean; }; export declare const pgDump: (connectionOptions: ConnectionOptions, dumpOptions: DumpOptionsType) => Promise<ExecaChildProcess>;