dbgate-types 5.5.2 → 5.5.4-alpha.1

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.
Files changed (2) hide show
  1. package/engines.d.ts +3 -1
  2. 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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.5.2",
2
+ "version": "5.5.4-alpha.1",
3
3
  "name": "dbgate-types",
4
4
  "homepage": "https://dbgate.org/",
5
5
  "repository": {