Add new MongoSchemaCollection class that manages schemas for all collections.

This commit is contained in:
Nikita Lutsenko
2016-03-09 15:20:59 -08:00
parent 72362bc604
commit 2730398b92
3 changed files with 71 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ DatabaseController.prototype.adaptiveCollection = function(className) {
return this.adapter.adaptiveCollection(this.collectionPrefix + className);
};
DatabaseController.prototype.schemaCollection = function() {
return this.adapter.schemaCollection(this.collectionPrefix);
};
DatabaseController.prototype.collectionExists = function(className) {
return this.adapter.collectionExists(this.collectionPrefix + className);
};