Facade crate re-exporting core traits and macros for the storeit-rs library.
This crate provides the main public API. It re-exports all necessary traits and procedural macros so that you only need to add this single crate as a dependency in your application.
Example: Deriving Entity
The #[derive(Entity)] macro generates compile-time metadata about your entity,
including a default RowAdapter implementation.
#
use ; // `Fetchable` must be in scope to access associated constants.
// The macro automatically deduces the table name (`users`) by pluralizing
// the snake_case version of the struct name.
// The `Entity` derive generates metadata constants via the `Fetchable` trait:
assert_eq!;
assert_eq!;
// It also generates a `RowAdapter` struct named `UserRowAdapter`.
// This line is a compile-time check that the struct was created.
let _adapter = UserRowAdapter;
Example: Generating a Repository
A runnable example showcasing the #[repository] macro can be found in the
/examples directory of the workspace. It is more comprehensive than a doctest
can be, as it involves multiple crates and backend-specific features.