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

Unified Diff: service/datastore/raw_interface.go

Issue 1367003002: Add missing Count api (Closed) Base URL: https://github.com/luci/gae.git@move_serialization_helpers
Patch Set: 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: service/datastore/raw_interface.go
diff --git a/service/datastore/raw_interface.go b/service/datastore/raw_interface.go
index 8c385472dc93a1d9cd07aaa4913afb70491fb9ff..5d4fca391a285e0f2d2e6ff73fb28e829395eb4c 100644
--- a/service/datastore/raw_interface.go
+++ b/service/datastore/raw_interface.go
@@ -129,6 +129,10 @@ type RawInterface interface {
// - cb is not nil
Run(q *FinalizedQuery, cb RawRunCB) error
+ // Count executes the given query and returns the number of entries which
+ // match it.
+ Count(q *FinalizedQuery) (int64, error)
+
// GetMulti retrieves items from the datastore.
//
// Callback execues once per key, in the order of keys. Callback may not
« impl/prod/raw_datastore_type_converter_test.go ('K') | « service/datastore/interface.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698