Expand description
Core traits and types for database models.
Structs§
- FastRow
- Wrapper for fast positional row decoding.
- Relation
- Typed relation handle for eager loading.
- Validation
Error - An error that occurred during model validation.
Enums§
- Update
Result - The result of an update operation, particularly relevant for optimistic locking.
Traits§
- Model
- The core trait for database models.
- Model
Hooks - Hooks that can be implemented to run logic before or after database operations.
- Model
Result Ext - Convenience helpers that map sqlx errors into
PremixError. - Model
Validation - A trait for validating model data before it is saved to the database.