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

Unified Diff: service/datastore/raw_interface.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Lightning talk licenses. Created 4 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
« no previous file with comments | « service/datastore/query_test.go ('k') | service/datastore/serialize/serialize.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/raw_interface.go
diff --git a/service/datastore/raw_interface.go b/service/datastore/raw_interface.go
index 96e54d3370311ffb63b4a2e01065ab94d0a2bc80..c15840c12388d324dbfe8c739a05bd52b9b09725 100644
--- a/service/datastore/raw_interface.go
+++ b/service/datastore/raw_interface.go
@@ -184,7 +184,16 @@ type RawInterface interface {
// - cb is not nil
DeleteMulti(keys []*Key, cb DeleteMultiCB) error
- // Testable returns the Testable interface for the implementation, or nil if
- // there is none.
- Testable() Testable
+ // WithoutTransaction returns a derived Context without a transaction applied.
+ // This may be called even when outside of a transaction, in which case the
+ // input Context is a valid return value.
+ WithoutTransaction() context.Context
+
+ // CurrentTransaction returns a reference to the current Transaction, or nil
+ // if the Context does not have a current Transaction.
+ CurrentTransaction() Transaction
+
+ // GetTestable returns the Testable interface for the implementation, or nil
+ // if there is none.
+ GetTestable() Testable
}
« no previous file with comments | « service/datastore/query_test.go ('k') | service/datastore/serialize/serialize.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698