Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Unified Diff: lib/src/db/db.dart

Issue 937133002: Add DatastoreDB.replace({defaultPartition}) (Closed) Base URL: git@github.com:dart-lang/gcloud.git@master
Patch Set: Addressed comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
/**
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698