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

Unified Diff: impl/memory/datastore.go

Issue 1309803004: Add transaction buffer filter. (Closed) Base URL: https://github.com/luci/gae.git@add_query_support
Patch Set: one more test Created 5 years, 3 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
Index: impl/memory/datastore.go
diff --git a/impl/memory/datastore.go b/impl/memory/datastore.go
index 84f5adddb53b2fbbb571bed4ff50c868532da881..e43a7e7f0fb42fe958d094237b86b29be82ecd6f 100644
--- a/impl/memory/datastore.go
+++ b/impl/memory/datastore.go
@@ -29,6 +29,11 @@ func useRDS(c context.Context) context.Context {
})
}
+// NewDatastore creates a new standalone memory implementation of the datastore.
+func NewDatastore(ns string) ds.RawInterface {
+ return &dsImpl{newDataStoreData(), ns, context.Background()}
+}
+
//////////////////////////////////// dsImpl ////////////////////////////////////
// dsImpl exists solely to bind the current c to the datastore data.

Powered by Google App Engine
This is Rietveld 408576698