mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 07:36:01 +00:00
mong support WIP
This commit is contained in:
3
packages/types/dbinfo.d.ts
vendored
3
packages/types/dbinfo.d.ts
vendored
@@ -74,6 +74,8 @@ export interface TableInfo extends DatabaseObjectInfo {
|
||||
checks?: CheckInfo[];
|
||||
}
|
||||
|
||||
export interface CollectionInfo extends DatabaseObjectInfo {}
|
||||
|
||||
export interface ViewInfo extends SqlObjectInfo {
|
||||
columns: ColumnInfo[];
|
||||
}
|
||||
@@ -91,6 +93,7 @@ export interface SchemaInfo {
|
||||
|
||||
export interface DatabaseInfoObjects {
|
||||
tables: TableInfo[];
|
||||
collections: CollectionInfo[];
|
||||
views: ViewInfo[];
|
||||
procedures: ProcedureInfo[];
|
||||
functions: FunctionInfo[];
|
||||
|
||||
1
packages/types/dialect.d.ts
vendored
1
packages/types/dialect.d.ts
vendored
@@ -8,4 +8,5 @@ export interface SqlDialect {
|
||||
explicitDropConstraint?: boolean;
|
||||
anonymousPrimaryKey?: boolean;
|
||||
enableConstraintsPerTable?: boolean;
|
||||
nosql?: boolean; // mongo
|
||||
}
|
||||
|
||||
9
packages/types/engines.d.ts
vendored
9
packages/types/engines.d.ts
vendored
@@ -24,6 +24,14 @@ export interface EngineAuthType {
|
||||
disabledFields: string[];
|
||||
}
|
||||
|
||||
export interface ReadCollectionOptions {
|
||||
pureName: string;
|
||||
schemaName?: string;
|
||||
|
||||
countDocuments?: boolean;
|
||||
skip?: number;
|
||||
limit?: number;
|
||||
}
|
||||
export interface EngineDriver {
|
||||
engine: string;
|
||||
title: string;
|
||||
@@ -52,6 +60,7 @@ export interface EngineDriver {
|
||||
dialect: SqlDialect;
|
||||
createDumper(): SqlDumper;
|
||||
getAuthTypes(): EngineAuthType[];
|
||||
readCollection(pool: any, options: ReadCollectionOptions): Promise<any>;
|
||||
|
||||
analyserClass?: any;
|
||||
dumperClass?: any;
|
||||
|
||||
Reference in New Issue
Block a user