Merge branch 'develop'

This commit is contained in:
Jan Prochazka
2024-08-23 09:20:01 +02:00
6 changed files with 21 additions and 5 deletions

View File

@@ -35,10 +35,14 @@ class Analyser extends DatabaseAnalyser {
pureName: x.name,
tableRowCount: stats[index]?.count,
uniqueKey: [{ columnName: '_id' }],
partitionKey: [{ columnName: '_id' }],
clusterKey: [{ columnName: '_id' }],
})),
...views.map((x, index) => ({
pureName: x.name,
uniqueKey: [{ columnName: '_id' }],
partitionKey: [{ columnName: '_id' }],
clusterKey: [{ columnName: '_id' }],
})),
],
});

View File

@@ -112,8 +112,8 @@ const driver = {
getCollectionExportQueryScript(collection, condition, sort) {
return `db.collection('${collection}')
.find(${JSON.stringify(convertToMongoCondition(condition) || {})})
.sort(${JSON.stringify(convertToMongoSort(sort) || {})})`;
.find(${JSON.stringify(convertToMongoCondition(condition) || {})})
.sort(${JSON.stringify(convertToMongoSort(sort) || {})})`;
},
getCollectionExportQueryJson(collection, condition, sort) {
return {