mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 17:36:01 +00:00
refactor WIP
This commit is contained in:
2
packages/types/engines.d.ts
vendored
2
packages/types/engines.d.ts
vendored
@@ -3,6 +3,7 @@ import { QueryResult } from './query';
|
||||
import { SqlDialect } from './dialect';
|
||||
import { SqlDumper } from './dumper';
|
||||
import { DatabaseInfo, NamedObjectInfo, TableInfo, ViewInfo, ProcedureInfo, FunctionInfo, TriggerInfo } from './dbinfo';
|
||||
import { StructuredFilterType } from './filter-type';
|
||||
|
||||
export interface StreamOptions {
|
||||
recordset: (columns) => void;
|
||||
@@ -153,6 +154,7 @@ export interface EngineDriver {
|
||||
getRedirectAuthUrl(connection, options): Promise<{ url: string; sid: string }>;
|
||||
getAuthTokenFromCode(connection, options): Promise<string>;
|
||||
getAccessTokenFromAuth(connection, req): Promise<string | null>;
|
||||
getFilterType(dataType: string): StructuredFilterType;
|
||||
|
||||
analyserClass?: any;
|
||||
dumperClass?: any;
|
||||
|
||||
6
packages/types/filter-type.d.ts
vendored
6
packages/types/filter-type.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
export type FilterParserCompilerType = 'sqlTree' | 'mongoCondition';
|
||||
export type FilterParserCompilerType = 'sqlTree' | 'mongoCondition' | 'datetime';
|
||||
|
||||
export interface StructuredFilterType {
|
||||
compilerType: FilterParserCompilerType;
|
||||
@@ -15,5 +15,7 @@ export interface StructuredFilterType {
|
||||
supportSqlCondition?: boolean;
|
||||
supportArrayTesting?: boolean;
|
||||
|
||||
// allowedOperators: Array<{ value: string; label: string }>;
|
||||
allowStringToken?: boolean;
|
||||
allowNumberToken?: boolean;
|
||||
allowHexString?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user