Releases: scalalandio/ocdquery
Releases · scalalandio/ocdquery
Scala 2.13 and Doobie 0.8.4
v0.5.0 Scala 2.13, Doobie 0.8.4
Count and Exists methods
- count filtered rows
- check if filtered rows are non-empty
- more build-in filters (
IN
,BETWEEN
,LIKE
) - various fixes to issues detected during testing
Filtering redesigned
Filtering was redesigned to use power of higer-kinded data more efficiently - instead of a select object that checks if particular field is equal to some value, now we have the option to extend filtering.
Repositories joining functionality
- repositories can be joined to filter and return tuples of entities
- fixed bug with limit SQL generation in pagination
DefaultColumnNames
utility for providing a sane defaults for column names settingsrepository.emptySelect
utility as for creating filters/updates from an empty value and providing only changes
Reworked initial design
- instead of "obligatory" and "selectable" fields, for simpler cases all fields can be wrapped in the same
F[_]
-where
andset
part will be done using different objects in update query instead of one with different roles of particular fields, - this way for simple vases you need only one
F[_]
- another one is needed only when you yourcreate
object differs from fetched entity because some fields are generated by database, - fetching supports now pagination,
- queries in
Repo
are now generated by utilities that can be used by API user as well.
Initial release
- proof of concept
- basic CRUD operations