| 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 library gcloud.datastore_impl; | 5 library gcloud.datastore_impl; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | |
| 9 import 'dart:math'; | |
| 10 | 8 |
| 11 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 12 | 10 |
| 13 import '../datastore.dart' as datastore; | 11 import '../datastore.dart' as datastore; |
| 14 import '../common.dart' show Page; | 12 import '../common.dart' show Page; |
| 15 import 'package:googleapis_beta/datastore/v1beta2.dart' as api; | 13 import 'package:googleapis_beta/datastore/v1beta2.dart' as api; |
| 16 | 14 |
| 17 class TransactionImpl implements datastore.Transaction { | 15 class TransactionImpl implements datastore.Transaction { |
| 18 final String data; | 16 final String data; |
| 19 TransactionImpl(this.data); | 17 TransactionImpl(this.data); |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 return new Future.sync(() { | 690 return new Future.sync(() { |
| 693 throw new ArgumentError('Cannot call next() on last page.'); | 691 throw new ArgumentError('Cannot call next() on last page.'); |
| 694 }); | 692 }); |
| 695 } | 693 } |
| 696 | 694 |
| 697 return QueryPageImpl.runQuery( | 695 return QueryPageImpl.runQuery( |
| 698 _api, _project, _nextRequest, _remainingNumberOfEntities) | 696 _api, _project, _nextRequest, _remainingNumberOfEntities) |
| 699 .catchError(DatastoreImpl._handleError); | 697 .catchError(DatastoreImpl._handleError); |
| 700 } | 698 } |
| 701 } | 699 } |
| OLD | NEW |