UNPKG

dbgate-tools

Version:

Auxiliary tools for other DbGate packages.

91 lines (90 loc) 3.57 kB
export interface ScriptWriterGeneric { allocVariable(prefix?: string): any; endLine(): any; assign(variableName: string, functionName: string, props: any): any; assignValue(variableName: string, jsonValue: any): any; requirePackage(packageName: string): any; copyStream(sourceVar: string, targetVar: string, colmapVar?: string, progressName?: string): any; importDatabase(options: any): any; dataReplicator(options: any): any; comment(s: string): any; zipDirectory(inputDirectory: string, outputFile: string): any; getScript(schedule?: any): any; } export declare class ScriptWriterJavaScript implements ScriptWriterGeneric { s: string; packageNames: string[]; varCount: number; constructor(varCount?: string); allocVariable(prefix?: string): string; _put(s?: string): void; endLine(): void; assignCore(variableName: any, functionName: any, props: any): void; assign(variableName: any, functionName: any, props: any): void; assignValue(variableName: any, jsonValue: any): void; requirePackage(packageName: any): void; copyStream(sourceVar: any, targetVar: any, colmapVar?: any, progressName?: string | { name: string; runid: string; }): void; importDatabase(options: any): void; dataReplicator(options: any): void; comment(s: any): void; getScript(schedule?: any): string; zipDirectory(inputDirectory: any, outputFile: any): void; } export declare class ScriptWriterJson implements ScriptWriterGeneric { s: string; packageNames: string[]; varCount: number; commands: any[]; constructor(varCount?: string); allocVariable(prefix?: string): string; endLine(): void; assign(variableName: any, functionName: any, props: any): void; requirePackage(packageName: any): void; assignValue(variableName: any, jsonValue: any): void; copyStream(sourceVar: any, targetVar: any, colmapVar?: any, progressName?: string | { name: string; runid: string; }): void; comment(text: any): void; importDatabase(options: any): void; dataReplicator(options: any): void; zipDirectory(inputDirectory: any, outputFile: any): void; getScript(schedule?: any): { type: string; schedule: any; commands: any[]; packageNames: string[]; }; } export declare class ScriptWriterEval implements ScriptWriterGeneric { s: string; varCount: number; commands: any[]; dbgateApi: any; requirePlugin: (name: string) => any; variables: { [name: string]: any; }; hostConnection: any; runid: string; constructor(dbgateApi: any, requirePlugin: any, hostConnection: any, runid: any, varCount?: string); allocVariable(prefix?: string): string; endLine(): void; requirePackage(packageName: any): void; assign(variableName: any, functionName: any, props: any): Promise<void>; assignValue(variableName: any, jsonValue: any): void; copyStream(sourceVar: any, targetVar: any, colmapVar?: any, progressName?: string | { name: string; runid: string; }): Promise<void>; comment(text: any): void; importDatabase(options: any): Promise<void>; dataReplicator(options: any): Promise<void>; zipDirectory(inputDirectory: any, outputFile: any): Promise<void>; getScript(schedule?: any): void; } export declare function playJsonScriptWriter(json: any, script: ScriptWriterGeneric): Promise<void>; export declare function jsonScriptToJavascript(json: any): Promise<string>;