dbgate-types 5.5.1 → 5.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/engines.d.ts +3 -1
- package/package.json +1 -1
package/engines.d.ts
CHANGED
|
@@ -188,6 +188,8 @@ export interface EngineDriver extends FilterBehaviourProvider {
|
|
|
188
188
|
stream(dbhan: DatabaseHandle, sql: string, options: StreamOptions);
|
|
189
189
|
readQuery(dbhan: DatabaseHandle, sql: string, structure?: TableInfo): Promise<stream.Readable>;
|
|
190
190
|
readJsonQuery(dbhan: DatabaseHandle, query: any, structure?: TableInfo): Promise<stream.Readable>;
|
|
191
|
+
// eg. PostgreSQL COPY FROM stdin
|
|
192
|
+
writeQueryFromStream(dbhan: DatabaseHandle, sql: string): Promise<stream.Writable>;
|
|
191
193
|
writeTable(dbhan: DatabaseHandle, name: NamedObjectInfo, options: WriteTableOptions): Promise<stream.Writable>;
|
|
192
194
|
analyseSingleObject(
|
|
193
195
|
dbhan: DatabaseHandle,
|
|
@@ -218,7 +220,7 @@ export interface EngineDriver extends FilterBehaviourProvider {
|
|
|
218
220
|
getCollectionUpdateScript(changeSet: any, collectionInfo: CollectionInfo): string;
|
|
219
221
|
createDatabase(dbhan: DatabaseHandle, name: string): Promise;
|
|
220
222
|
dropDatabase(dbhan: DatabaseHandle, name: string): Promise;
|
|
221
|
-
getQuerySplitterOptions(usage: 'stream' | 'script' | 'editor'): any;
|
|
223
|
+
getQuerySplitterOptions(usage: 'stream' | 'script' | 'editor' | 'import'): any;
|
|
222
224
|
script(dbhan: DatabaseHandle, sql: string, options?: RunScriptOptions): Promise;
|
|
223
225
|
operation(dbhan: DatabaseHandle, operation: {}, options?: RunScriptOptions): Promise;
|
|
224
226
|
getNewObjectTemplates(): NewObjectTemplate[];
|
package/package.json
CHANGED