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

Unified Diff: filter/count/rds.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 | « no previous file | impl/dummy/dummy.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/rds.go
diff --git a/filter/count/rds.go b/filter/count/rds.go
index f3ce9f8736cfbc22ecc544e62ad6db1d5bf4b4b7..5e40b6f758ec3752c4e338d15916443420b61a61 100644
--- a/filter/count/rds.go
+++ b/filter/count/rds.go
@@ -13,6 +13,7 @@ import (
// DSCounter is the counter object for the datastore service.
type DSCounter struct {
NewKey Entry
+ DecodeCursor Entry
DecodeKey Entry
NewQuery Entry
RunInTransaction Entry
@@ -45,6 +46,11 @@ func (r *dsCounter) NewQuery(kind string) ds.Query {
return r.ds.NewQuery(kind)
}
+func (r *dsCounter) DecodeCursor(s string) (ds.Cursor, error) {
+ cursor, err := r.ds.DecodeCursor(s)
+ return cursor, r.c.DecodeCursor.up(err)
+}
+
func (r *dsCounter) Run(q ds.Query, cb ds.RawRunCB) error {
return r.c.Run.up(r.ds.Run(q, cb))
}
« no previous file with comments | « no previous file | impl/dummy/dummy.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698