-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
24 lines (22 loc) · 1.13 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export interface PgResponse {
code: string
message: string
}
export interface ProcessOutput {
status: number
stdout: string
stderr: string
}
export declare function runNpmScript(script: string): Promise<ProcessOutput>
export declare function testPostgresUrl(url: string): Promise<PgResponse>
export declare function createDatabase(url: string, database: string): Promise<PgResponse>
export declare function testRedisParameters(host: string, username?: string | undefined | null, password?: string | undefined | null): Promise<string>
export declare function fileExists(filePath: string): boolean
export declare function renameDatabase(url: string, database: string, newDatabaseName: string): Promise<PgResponse>
export declare function findNonexistentFiles(paths: Array<string>): Array<string>
export declare function copyFile(source: string, destination: string, createDestIfNotExists?: boolean | undefined | null): void
export declare function envToJsonString(envPath: string): string
export declare function jsonStringToEnv(jsonStr: string, envPath: string): void