Module prelude

Source
Expand description

Prelude including all the necessary traits for convenience

Structs§

Store
A Store is a wrapper around a Pool that allows to perform basic, so-called “CRUD” operations.
WithId
WithId is 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 sqlx denoting all types of queries (Query and QueryAs) on which the bind method can be called.
BindColumn
Trait that can be implemented on a struct to 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 struct to 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 Schema and Bind traits.