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

Unified Diff: service/datastore/raw_interface.go

Issue 1309933003: datastore: Add DecodeCursor to [Raw]Interface. (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Use more concise formulation. Created 5 years, 4 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/interface.go ('k') | no next file » | 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 e9c77c6924433fe29bfaa21dbeaa90a31a62ffbf..09eca7ee3e297b344df94a85e94d178689f93bb0 100644
--- a/service/datastore/raw_interface.go
+++ b/service/datastore/raw_interface.go
@@ -165,6 +165,11 @@ type RawInterface interface {
// - f is not nil
RunInTransaction(f func(c context.Context) error, opts *TransactionOptions) error
+ // DecodeCursor converts a string returned by a Cursor into a Cursor instance.
+ // It will return an error if the supplied string is not valid, or could not
+ // be decoded by the implementation.
+ DecodeCursor(s string) (Cursor, error)
+
// Run executes the given query, and calls `cb` for each successfully item.
//
// NOTE: Implementations and filters are guaranteed that:
« no previous file with comments | « service/datastore/interface.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698