Skip to content

Releases: emirror-de/naphtha

PostgreSQL support

27 Feb 10:30
Compare
Choose a tag to compare

See the CHANGELOG.md for updates.

Full Changelog: v0.4.1...v0.5.0

Bugfix release.

22 Nov 16:52
Compare
Choose a tag to compare

See the CHANGELOG.md for updates.

Full Changelog: v0.4.0...v0.4.1

Added DatabaseInsertHandler, DatabaseRemoveHandler

20 Sep 08:54
Compare
Choose a tag to compare

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

11 Sep 11:30
Compare
Choose a tag to compare

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 for SQLite3

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

27 Aug 13:23
Compare
Choose a tag to compare

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