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

Unified Diff: service/datastore/datastore.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 | « impl/prod/raw_datastore.go ('k') | service/datastore/interface.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/datastore.go
diff --git a/service/datastore/datastore.go b/service/datastore/datastore.go
index 456835ad36a14c460ea62f112a1a8e3a394fac95..cbf30e675992aa1ab67c1142c283cab58e05e8b7 100644
--- a/service/datastore/datastore.go
+++ b/service/datastore/datastore.go
@@ -27,6 +27,10 @@ func (d *datastoreImpl) KeyForObjErr(src interface{}) (Key, error) {
return newKeyObjErr(d.NewKey, src)
}
+func (d *datastoreImpl) DecodeCursor(s string) (Cursor, error) {
+ return d.RawInterface.DecodeCursor(s)
+}
+
func (d *datastoreImpl) Run(q Query, cbIface interface{}) error {
// TODO(riannucci): Profile and determine if any of this is causing a real
// slowdown. Could potentially cache reflection stuff by cbType?
« no previous file with comments | « impl/prod/raw_datastore.go ('k') | service/datastore/interface.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698