correct export from read-only connection

This commit is contained in:
Jan Prochazka
2022-03-20 09:47:39 +01:00
parent 1a81952ce7
commit 6fb582249c
9 changed files with 85 additions and 20 deletions

View File

@@ -47,7 +47,7 @@ export interface EngineDriver {
title: string;
defaultPort?: number;
databaseEngineTypes: string[];
readOnlySessions: boolean,
readOnlySessions: boolean;
supportedKeyTypes: { name: string; label: string }[];
supportsDatabaseUrl?: boolean;
isElectronOnly?: boolean;
@@ -62,6 +62,7 @@ export interface EngineDriver {
query(pool: any, sql: string, options?: QueryOptions): Promise<QueryResult>;
stream(pool: any, sql: string, options: StreamOptions);
readQuery(pool: any, sql: string, structure?: TableInfo): Promise<stream.Readable>;
readJsonQuery(pool: any, query: any, structure?: TableInfo): Promise<stream.Readable>;
writeTable(pool: any, name: NamedObjectInfo, options: WriteTableOptions): Promise<stream.Writeable>;
analyseSingleObject(
pool: any,