Expand description
Prelude including all the necessary traits for convenience
Structs§
- Store
- A
Storeis a wrapper around aPoolthat allows to perform basic, so-called “CRUD” operations. - WithId
WithIdis a wrapper of struct that provides an additional id field which is used in the database to identify the entity.
Traits§
- Bind
- Trait that should arguable be in
sqlxdenoting all types of queries (QueryandQueryAs) on which thebindmethod can be called. - Bind
Column - Trait that can be implemented on a
structto bind the fields of of this struct with a sqlx::query::QueryAs or a sqlx::query::Query. - Create
- [C]reate CRUD operation
- Crud
- CRUD operations
- Delete
- [D]elete CRUD operation
- Read
- [R]ead CRUD operation
- Schema
- Trait that can be implemented on a
structto associate a basic SQL schema with it. - Table
- Trait representing the fact that this object can create and drop tables on a specific database type.
- Update
- [U]pdate CRUD operation
Derive Macros§
- Entity
- Derive macro to automatically derive the
SchemaandBindtraits.