Version 0.2.0
Overview
This update completely overhauls the interface for declaring indexes on your types, and is a breaking change. Please stay on 0.1.x
if you can't upgrade at this time.
The major new type is DatastoreFormat
, which you are encouraged to conform to in a struct, which provides the main version and type information that used to be generics on Datastore
. This struct can then declare all the indexes rather than declaring them on the stored type instead, allowing types to more easily be re-used across repos, and allowing computed indexes to be much more expressive. Please see the documentation for DatastoreFormat
for more details. Along with it come some new index types allowing relationships like many-to-many indexes to be indexed and retrieved using individual values rather than a set of them.
The next major update will likely change Indexable to be a proper protocol, no longer conforming to Codable and Comparable. Please look forward to that!
What's Changed
- Index Refactor by @dimitribouniol in #188
Full Changelog: 0.1.5...0.2.0