Version 0.2.0 #189
dimitribouniol
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 onDatastore
. 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 forDatastoreFormat
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
Full Changelog: 0.1.5...0.2.0
This discussion was created from the release Version 0.2.0.
Beta Was this translation helpful? Give feedback.
All reactions