| 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.db; | 5 library gcloud.db; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:mirrors' as mirrors; | 9 import 'dart:mirrors' as mirrors; |
| 10 | 10 |
| 11 import 'common.dart' show Page, StreamFromPages; | 11 import 'common.dart' show StreamFromPages; |
| 12 import 'service_scope.dart' as ss; | 12 import 'service_scope.dart' as ss; |
| 13 import 'datastore.dart' as datastore; | 13 import 'datastore.dart' as datastore; |
| 14 | 14 |
| 15 part 'src/db/annotations.dart'; | 15 part 'src/db/annotations.dart'; |
| 16 part 'src/db/db.dart'; | 16 part 'src/db/db.dart'; |
| 17 part 'src/db/models.dart'; | 17 part 'src/db/models.dart'; |
| 18 part 'src/db/model_db.dart'; | 18 part 'src/db/model_db.dart'; |
| 19 part 'src/db/model_db_impl.dart'; | 19 part 'src/db/model_db_impl.dart'; |
| 20 | 20 |
| 21 const Symbol _dbKey = #gcloud.db; | 21 const Symbol _dbKey = #gcloud.db; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 /// | 33 /// |
| 34 /// The provided `db` object will be available via the top-level `dbService` | 34 /// The provided `db` object will be available via the top-level `dbService` |
| 35 /// getter. | 35 /// getter. |
| 36 /// | 36 /// |
| 37 /// Calling this function outside of a service scope will result in an error. | 37 /// Calling this function outside of a service scope will result in an error. |
| 38 /// Calling this function more than once inside the same service scope is not | 38 /// Calling this function more than once inside the same service scope is not |
| 39 /// allowed. | 39 /// allowed. |
| 40 void registerDbService(DatastoreDB db) { | 40 void registerDbService(DatastoreDB db) { |
| 41 ss.register(_dbKey, db); | 41 ss.register(_dbKey, db); |
| 42 } | 42 } |
| OLD | NEW |