Index: service/datastore/datastore.go |
diff --git a/service/datastore/datastore.go b/service/datastore/datastore.go |
index 195df7871a2604d741010175a8f4636b9b64f109..3db1919f3fc58a246e1216515b4076d6f58a38c6 100644 |
--- a/service/datastore/datastore.go |
+++ b/service/datastore/datastore.go |
@@ -108,6 +108,14 @@ func (d *datastoreImpl) Run(q *Query, cbIface interface{}) error { |
return err |
} |
+func (d *datastoreImpl) Count(q *Query) (int64, error) { |
+ fq, err := q.Finalize() |
+ if err != nil { |
+ return 0, err |
+ } |
+ return d.RawInterface.Count(fq) |
+} |
+ |
func (d *datastoreImpl) GetAll(q *Query, dst interface{}) error { |
v := reflect.ValueOf(dst) |
if v.Kind() != reflect.Ptr { |