Skip to content

basalt / backup/src / CommandRunner

Interface: CommandRunner() ​

Defined in: backup/src/postgres.ts:33

> CommandRunner(command, args, options): Promise<void>

Defined in: backup/src/postgres.ts:39

Runs a PostgreSQL client tool. The connection URL in args never carries a password; when one is configured it is supplied in env.PGPASSWORD, which a custom runner must forward to the child process environment.

Parameters ​

command ​

string

args ​

string[]

options ​

cwd ​

string

env? ​

Record<string, string>

output? ​

string

Returns ​

Promise<void>

Released under the MIT License.