This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { spawn, execSync } from 'child_process'; | |
import through2 from 'through2'; | |
import fs from 'fs'; | |
import * as AWS from 'aws-sdk'; | |
function spawnPgDump(pgDumpPath, args, env) { | |
if (!fs.existsSync(pgDumpPath)) { | |
throw new Error('pg_dump not found at ' + pgDumpPath); | |
} |