A library to ease the use of the datastore with the googleapis package.
// You can use a factory constructor for setting up an object from an entity.
// the bridge.fromEntity can be called anywhere.
// Or you can use a vanilla constructor if you prefer.
// Shorthand function for mapping this to an entify Entity object.
// Fields can be renamed, marked as unindexed (not demonstrated here).
// This field is converted to/from a property via a getter/setter respectively.
// This is a lookup field generated from taxonomy, it doesn't need a setter.
// This is a non-persistent property.
All the elements are optional, you can create googleapis level API objects and modify them if something is not supported.
Check out the https://github.com/skawa-universe/endangered_species/ project for an example and details on the class provided above.
Added an option to the EntityBridge metadata classes skip setting properties that are missing in the entity.
Introduced version in Entity that saves the version in the fetch and query results.
EntityBridge can set version fields if they are available.
MutationBatch can return the affected keys with relatedKeys.
All get functions now handle deferred reads automatically.
Introduced the IndexOverride wrapper which can override whether an entity model field value has to be indexed or not.
The remove method on Entity returns the previously set value.
The default read consistency has been changed to null which means the service side default, which is different what it used to be with get calls and ancestor queries.
Entity now supports accessing property names, so properties are now enumerable.
The setPropertiesFrom in the Entity class allows future proof entity updates.
Renamed MutationBatch.execute and executeRaw to commit. The execute methods are deprecated now and will be removed in a future release.
The bool parameter of toValue became a named parameter as it is recommended.
Primary library: package:entify/entify.dart with components: mirrors.
Run dartfmt to format lib/src/entity/metadata.dart.
A toolkit to ease the use of the datastore with the googleapis package.