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

Side by Side Diff: lib/src/datastore_impl.dart

Issue 707983002: pkg/gcloud: v0.1.1 (Closed) Base URL: https://github.com/dart-lang/gcloud.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698