OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /// This library provides a low-level API for accessing Google's Cloud | 5 /// This library provides a low-level API for accessing Google's Cloud |
6 /// Datastore. | 6 /// Datastore. |
7 /// | 7 /// |
8 /// For more information on Cloud Datastore, please refer to the following | 8 /// For more information on Cloud Datastore, please refer to the following |
9 /// developers page: https://cloud.google.com/datastore/docs | 9 /// developers page: https://cloud.google.com/datastore/docs |
10 library gcloud.datastore; | 10 library gcloud.datastore; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 } | 233 } |
234 | 234 |
235 /// A relation used in query filters. | 235 /// A relation used in query filters. |
236 class FilterRelation { | 236 class FilterRelation { |
237 static const FilterRelation LessThan = const FilterRelation._('<'); | 237 static const FilterRelation LessThan = const FilterRelation._('<'); |
238 static const FilterRelation LessThanOrEqual = const FilterRelation._('<='); | 238 static const FilterRelation LessThanOrEqual = const FilterRelation._('<='); |
239 static const FilterRelation GreatherThan = const FilterRelation._('>'); | 239 static const FilterRelation GreatherThan = const FilterRelation._('>'); |
240 static const FilterRelation GreatherThanOrEqual = | 240 static const FilterRelation GreatherThanOrEqual = |
241 const FilterRelation._('>='); | 241 const FilterRelation._('>='); |
242 static const FilterRelation Equal = const FilterRelation._('=='); | 242 static const FilterRelation Equal = const FilterRelation._('=='); |
243 static const FilterRelation In = const FilterRelation._('IN'); | |
244 | 243 |
245 final String name; | 244 final String name; |
246 | 245 |
247 const FilterRelation._(this.name); | 246 const FilterRelation._(this.name); |
248 | 247 |
249 String toString() => name; | 248 String toString() => name; |
250 } | 249 } |
251 | 250 |
252 /// A filter used in queries. | 251 /// A filter used in queries. |
253 class Filter { | 252 class Filter { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 /// If a [transaction] is given, the query will be within this transaction. | 411 /// If a [transaction] is given, the query will be within this transaction. |
413 /// But note that arbitrary queries within a transaction are not possible. | 412 /// But note that arbitrary queries within a transaction are not possible. |
414 /// A transaction is limited to a very small number of entity groups. Usually | 413 /// A transaction is limited to a very small number of entity groups. Usually |
415 /// queries with transactions are restricted by providing an ancestor filter. | 414 /// queries with transactions are restricted by providing an ancestor filter. |
416 /// | 415 /// |
417 /// Outside of transactions, the result set might be stale. Queries are by | 416 /// Outside of transactions, the result set might be stale. Queries are by |
418 /// default eventually consistent. | 417 /// default eventually consistent. |
419 Future<Page<Entity>> query( | 418 Future<Page<Entity>> query( |
420 Query query, {Partition partition, Transaction transaction}); | 419 Query query, {Partition partition, Transaction transaction}); |
421 } | 420 } |
OLD | NEW |