Releases: emirror-de/naphtha
Releases · emirror-de/naphtha
PostgreSQL support
See the CHANGELOG.md for updates.
Full Changelog: v0.4.1...v0.5.0
Bugfix release.
See the CHANGELOG.md for updates.
Full Changelog: v0.4.0...v0.4.1
Added DatabaseInsertHandler, DatabaseRemoveHandler
It is now possible to implement custom behavior before and after insert
, update
and remove
transactions to the database. This enables the possibility to extend the CRUD model.
v0.2.0
New features
- Added
QueryByProperties
trait that enables to query the model by a specific property value. It only returns models that matches the exact value. - Implemented
QueryByProperties
forSQLite3
Changes
- The
custom
method has been updated. Calling it now requires an anonymous type as second generic parameter. - The example for
SQLite3
has been updated.
Removals and deprecations
None
Initial release
This is the very first release of a long prepared crate that targets to simplify the connection of your models to one or more databases. Currently it only targets SQL Databases, but support for other databases might be added in the future.
New features
- Most common function implementations insert, update, remove for your models.
DatabaseUpdateHandler
trait enables you to change the models values before and after the update transaction to the database.- Integrated barrel crate for writing your SQL migrations.
- Thread safe handling of the database connection.
Supported databases
- SQLite3
Upcoming enhancements
- Implementation of query_by_{PROPERTY_NAME} methods that enable to query a model from the database that matches this property
- Support for MySql
- Support for PostgreSQL
For more information visit the documentation page.
This crate is brought to you by openprobst, an initiative by emirror-de