mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 16:26:00 +00:00
postgres copystream support
This commit is contained in:
@@ -195,4 +195,8 @@ export const driverBase = {
|
||||
async listSchemas(pool) {
|
||||
return null;
|
||||
},
|
||||
|
||||
async writeQueryFromStream(dbhan, sql) {
|
||||
return null;
|
||||
},
|
||||
};
|
||||
|
||||
2
packages/types/engines.d.ts
vendored
2
packages/types/engines.d.ts
vendored
@@ -188,6 +188,8 @@ export interface EngineDriver extends FilterBehaviourProvider {
|
||||
stream(dbhan: DatabaseHandle, sql: string, options: StreamOptions);
|
||||
readQuery(dbhan: DatabaseHandle, sql: string, structure?: TableInfo): Promise<stream.Readable>;
|
||||
readJsonQuery(dbhan: DatabaseHandle, query: any, structure?: TableInfo): Promise<stream.Readable>;
|
||||
// eg. PostgreSQL COPY FROM stdin
|
||||
writeQueryFromStream(dbhan: DatabaseHandle, sql: string): Promise<stream.Writable>;
|
||||
writeTable(dbhan: DatabaseHandle, name: NamedObjectInfo, options: WriteTableOptions): Promise<stream.Writable>;
|
||||
analyseSingleObject(
|
||||
dbhan: DatabaseHandle,
|
||||
|
||||
Reference in New Issue
Block a user