mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
Merge branch 'develop'
This commit is contained in:
@@ -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' }],
|
||||
})),
|
||||
],
|
||||
});
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user