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

Unified Diff: lib/src/db/model_db.dart

Issue 1520863002: Implement support for converting db values to datastore values with db.Query.filter (Closed) Base URL: git@github.com:dart-lang/gcloud.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/db/db.dart ('k') | lib/src/db/model_db_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/db/model_db.dart
diff --git a/lib/src/db/model_db.dart b/lib/src/db/model_db.dart
index 0655ac3ad8c8faf3c0da4b18f02a7c6064e95d35..8408ac530de1990d234e6a93d169253dbc618f33 100644
--- a/lib/src/db/model_db.dart
+++ b/lib/src/db/model_db.dart
@@ -40,4 +40,9 @@ abstract class ModelDB {
*/
// TODO: Get rid of this eventually.
String fieldNameToPropertyName(String kind, String fieldName);
+
+ /**
+ * Converts [value] according to the [Property] named [fieldName] in [type].
+ */
+ Object toDatastoreValue(Type type, String fieldName, Object value);
}
« no previous file with comments | « lib/src/db/db.dart ('k') | lib/src/db/model_db_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698