Index: lib/src/db/db.dart |
diff --git a/lib/src/db/db.dart b/lib/src/db/db.dart |
index 07c5efb7b5ac3b7bafedfcd0da4508e144c370c3..8d17c1f3f038dcd48b502dbb2c402bf30fa2f366 100644 |
--- a/lib/src/db/db.dart |
+++ b/lib/src/db/db.dart |
@@ -247,9 +247,10 @@ class DatastoreDB { |
final ModelDB _modelDB; |
Partition _defaultPartition; |
- DatastoreDB(this.datastore, {ModelDB modelDB}) |
- : _modelDB = modelDB != null ? modelDB : new ModelDBImpl() { |
- _defaultPartition = new Partition(null); |
+ DatastoreDB(this.datastore, {ModelDB modelDB, Partition defaultPartition}) : |
+ _modelDB = modelDB != null ? modelDB : new ModelDBImpl() { |
+ _defaultPartition = |
+ defaultPartition != null ? defaultPartition : new Partition(null); |
} |
/** |