Diesel-Versioning
Diesel-Versioning implements optimistic locking for Diesel. This is achieved by an additional field on every entity, which should be support optimistic locking.
Getting started
The entity must have implemented diesel::AsChangeset and diesel::Identifiable to implement Versioned. You can
use the provided derive macro.
use AsChangeset;
use Identifiable;
use Versioned;
Currently only integer values are supported as version field.
If you use the feature-flag async, you have to use VersionedAsync instead of Versioned.
License
Licensed under either of these:
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)