- Added required
primary_key
parameter to the#[model]
attribute. This enables the possibility of setting the primary key name.
- Improved error handling. The
DatabaseModelModifier
now returns ananyhow::Result
instead of a plainbool
- Improved internal structure
- proc-macro implementation now uses the anyhow re-exported crate from naphtha
- Fixed wrong import statements in proc macro crate
- Added missing diesel::Table use statement
diesel::Pg
connection is now implemented
- Updated examples to be able to use feature flags for the database selection
- None
- Updated
barrel
dependency to0.7.0
- Bugfix, the
barrel
implementation was specifically implemented for the example - Removed the requirement of
log
crate as dependency when using this library
None
- Added support for
diesel::MysqlConnection
- Added support for
MySql
barrel backend - Added
.tmuxp.yaml
file for better development - Added
docker-compose.yml
file withMySQL
database for easy testing
- Internal macro definition changes due to conflicting
use
statements
None
- Added
DatabaseInsertHandler
andDatabaseRemoveHandler
to have the possibility to extend the CRUD model.
None
None
- 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
- The
custom
method has been updated. Calling it now requires an anonymous type as second generic parameter. - The example for
SQLite3
has been updated.
None
-
Added
barrel
integration forSQLite3
-
Added
SQLite3
support, backed bydiesel
-
Added an example for
SqliteConnection
-
Added possibility for
custom
queries -
Added possibility to change the model before and after updating it in the database by implementing the
DatabaseUpdateHandler
trait.
None