nosql db WIP
Some checks are pending
Run tests / test-runner (push) Waiting to run

This commit is contained in:
Jan Prochazka 2024-08-20 17:01:17 +02:00
parent d131287ca0
commit 1cbeeac7cd
2 changed files with 15 additions and 1 deletions

View File

@ -94,7 +94,19 @@ export interface TableInfo extends DatabaseObjectInfo {
__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 {
columns: ColumnInfo[];

View File

@ -34,9 +34,11 @@ class Analyser extends DatabaseAnalyser {
...collections.map((x, index) => ({
pureName: x.name,
tableRowCount: stats[index]?.count,
uniqueKey: [{ columnName: '_id' }],
})),
...views.map((x, index) => ({
pureName: x.name,
uniqueKey: [{ columnName: '_id' }],
})),
],
});