UNPKG

pg-dump-restore

Version:

Nodejs wrapper around the pg_dump and pg_restore

45 lines (44 loc) 1.31 kB
import { ExecaChildProcess } from 'execa'; import { ConnectionOptions, FormatEnum } from './common'; export declare type RestoreOptionsType = { filePath: string; dataOnly?: boolean; clean?: boolean; create?: boolean; exitOnError?: boolean; format?: FormatEnum; fileName?: string; index?: string; jobs?: number; list?: boolean; useListFile?: string; schemaPattern?: string; excludeSchemaPattern?: string; noOwner?: boolean; noReconnect?: boolean; schemaOnly?: boolean; verbose?: boolean; singleTransaction?: boolean; version?: boolean; noAcl?: boolean; disableTriggers?: boolean; enableRowSecurity?: boolean; ifExists?: boolean; noComments?: boolean; noDataForFailedTables?: boolean; noSecurityLabels?: boolean; noPublications?: boolean; noSubscriptions?: boolean; noTableSpaces?: boolean; strictNames?: boolean; useSetSessionAuthorization?: boolean; functionName?: string; superUser?: string; table?: string; trigger?: string; sectionName?: string; noPassword?: boolean; roleName?: string; noPrivileges?: boolean; }; export declare const pgRestore: (connectionOptions: ConnectionOptions, restoreOptions: RestoreOptionsType) => Promise<ExecaChildProcess>;