mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
perspectives - remove mongo hardcodes
This commit is contained in:
13
packages/types/engines.d.ts
vendored
13
packages/types/engines.d.ts
vendored
@@ -41,6 +41,8 @@ export interface ReadCollectionOptions {
|
||||
countDocuments?: boolean;
|
||||
skip?: number;
|
||||
limit?: number;
|
||||
condition?: any;
|
||||
aggregate?: CollectionAggregateDefinition;
|
||||
}
|
||||
|
||||
export interface NewObjectTemplate {
|
||||
@@ -72,6 +74,17 @@ export interface ServerSummary {
|
||||
databases: ServerSummaryDatabase[];
|
||||
}
|
||||
|
||||
export type CollectionAggregateFunction = 'count' | 'sum' | 'avg' | 'min' | 'max';
|
||||
export interface CollectionAggregateDefinition {
|
||||
condition: any; // SQL tree condition
|
||||
groupByColumns: string[];
|
||||
aggregateColumns: {
|
||||
alias: string;
|
||||
aggregateFunction: CollectionAggregateFunction;
|
||||
columnArgument?: string;
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface FilterBehaviourProvider {
|
||||
getFilterBehaviour(dataType: string, standardFilterBehaviours: { [id: string]: FilterBehaviour }): FilterBehaviour;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user