mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
This commit is contained in:
parent
d131287ca0
commit
1cbeeac7cd
14
packages/types/dbinfo.d.ts
vendored
14
packages/types/dbinfo.d.ts
vendored
@ -94,7 +94,19 @@ export interface TableInfo extends DatabaseObjectInfo {
|
|||||||
__isDynamicStructure?: boolean;
|
__isDynamicStructure?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CollectionInfo extends DatabaseObjectInfo {}
|
export interface CollectionInfo extends DatabaseObjectInfo {
|
||||||
|
// all known columns with definition (only used in Cassandra)
|
||||||
|
knownColumns?: ColumnInfo[];
|
||||||
|
|
||||||
|
// unique combination of columns (should be contatenation of partitionKey and clusterKey)
|
||||||
|
uniqueKey?: ColumnReference[];
|
||||||
|
|
||||||
|
// partition key columns
|
||||||
|
partitionKey?: ColumnReference[]
|
||||||
|
|
||||||
|
// unique key inside partition
|
||||||
|
clusterKey?: ColumnReference[];
|
||||||
|
}
|
||||||
|
|
||||||
export interface ViewInfo extends SqlObjectInfo {
|
export interface ViewInfo extends SqlObjectInfo {
|
||||||
columns: ColumnInfo[];
|
columns: ColumnInfo[];
|
||||||
|
@ -34,9 +34,11 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
...collections.map((x, index) => ({
|
...collections.map((x, index) => ({
|
||||||
pureName: x.name,
|
pureName: x.name,
|
||||||
tableRowCount: stats[index]?.count,
|
tableRowCount: stats[index]?.count,
|
||||||
|
uniqueKey: [{ columnName: '_id' }],
|
||||||
})),
|
})),
|
||||||
...views.map((x, index) => ({
|
...views.map((x, index) => ({
|
||||||
pureName: x.name,
|
pureName: x.name,
|
||||||
|
uniqueKey: [{ columnName: '_id' }],
|
||||||
})),
|
})),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user