mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 05:36:00 +00:00
29 lines
566 B
TypeScript
29 lines
566 B
TypeScript
import { DisplayColumn } from './GridDisplay';
|
|
import { TableInfo } from '@dbgate/types';
|
|
|
|
export interface GridConfig {
|
|
hiddenColumns: string[];
|
|
expandedColumns: string[];
|
|
addedColumns: string[];
|
|
}
|
|
|
|
export interface GridCache {
|
|
tables: { [uniqueName: string]: TableInfo };
|
|
refreshTime: number;
|
|
}
|
|
|
|
export function createGridConfig(): GridConfig {
|
|
return {
|
|
hiddenColumns: [],
|
|
expandedColumns: [],
|
|
addedColumns: [],
|
|
};
|
|
}
|
|
|
|
export function createGridCache(): GridCache {
|
|
return {
|
|
tables: {},
|
|
refreshTime: new Date().getTime(),
|
|
};
|
|
}
|