mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 05:36:01 +00:00
backend - using engine driver from plugin
This commit is contained in:
8
packages/types/engines.d.ts
vendored
8
packages/types/engines.d.ts
vendored
@@ -7,9 +7,9 @@ import { DatabaseInfo, NamedObjectInfo, TableInfo, ViewInfo, ProcedureInfo, Func
|
||||
export interface StreamOptions {
|
||||
recordset: (columns) => void;
|
||||
row: (row) => void;
|
||||
error: (error) => void;
|
||||
done: (result) => void;
|
||||
info: (info) => void;
|
||||
error?: (error) => void;
|
||||
done?: (result) => void;
|
||||
info?: (info) => void;
|
||||
}
|
||||
|
||||
export interface WriteTableOptions {
|
||||
@@ -21,7 +21,7 @@ export interface WriteTableOptions {
|
||||
export interface EngineDriver {
|
||||
engine: string;
|
||||
title: string;
|
||||
connect(nativeModules, { server, port, user, password, database }): any;
|
||||
connect({ server, port, user, password, database }): any;
|
||||
query(pool: any, sql: string): Promise<QueryResult>;
|
||||
stream(pool: any, sql: string, options: StreamOptions);
|
||||
readQuery(pool: any, sql: string, structure?: TableInfo): Promise<stream.Readable>;
|
||||
|
||||
Reference in New Issue
Block a user