Chromium Code Reviews| Index: service/datastore/interface.go |
| diff --git a/service/datastore/interface.go b/service/datastore/interface.go |
| index d4afa69a6b9a487d413476878665c3759fea2a07..d68314108c7175262f03dbef1128cd75f8e14f9f 100644 |
| --- a/service/datastore/interface.go |
| +++ b/service/datastore/interface.go |
| @@ -118,6 +118,14 @@ type Interface interface { |
| // - *[]*Key implies a keys-only query. |
| GetAll(q *Query, dst interface{}) error |
| + // Does a Get for this key and returns true iff it exists. Will only return |
|
Vadim Sh.
2015/10/13 04:05:57
Exists does a get ... Also explain why it is bette
|
| + // an error if it's not ErrNoSuchEntity |
| + Exists(k *Key) (bool, error) |
| + |
| + // Does a GetMulti for thes keys and returns true iff they exist. Will only |
| + // return an error if it's not ErrNoSuchEntity |
| + ExistsMulti(k []*Key) ([]bool, error) |
|
Vadim Sh.
2015/10/13 04:05:57
same here
|
| + |
| // Get retrieves a single object from the datastore |
| // |
| // dst must be one of: |