Re-exports§
pub use helper_utilities::ShortenLifetime;pub use table_modes::*;
Modules§
- helper_
tables - A set of helper tables that are equivalent to tuples.
- helper_
utilities - table_
modes - The modes a table can be in
Structs§
- Erased
Expr - A publicly exposed opaque type that is used by Table::visit and Table::visit_mut. Its purpose is to allow you to store Exprs in your types which implement the Table trait.
- Expr
- A type representing an expression in the query, can be passed around on the rust side to wire things up
- Insert
- Maybe
Table - Q
- An opaque value you can use to compose together queries.
- Query
- A value representing a sql select statement which produces rows of type
T. - Table
Schema - A table’s name and column names.
- Table
Using Mapper - A wrapper which implements Table for any type implementing MapTable in ExprMode.
- Table
Using Mapper Nullified - A wrapper which implements Table for any type implementing MapTable in ExprNullifiedMode.
Traits§
- ForLifetime
Table - A helper trait that allows us to talk about a Table with different
lifetimes. Conceptually it is a type level function of
lt -> T where T: Table<'lt>. - MapTable
- This trait allows us to change the mode of a table by mapping all the fields with ModeMapper, ModeMapperRef, or ModeMapperMut.
- Mode
Mapper - This trait allows us to write a mapping function between two column modes.
- Mode
Mapper Mut - This trait allows us to write a mapping function between two column modes.
- Mode
Mapper Ref - This trait allows us to write a mapping function between two column modes.
- Sqlx
Value IfEnabled - Proxy trait for sqlx::Decode that we can switch off if not enabled
- Table
- A trait that represents a database result row.
- TableHKT
- A trait abstracting the mode of a user defined table, which allows us to talk about the same table in two different modes.
- Table
Loader Sqlx - Table
Mode - Table modes, this trait is used to switch the types of a rust structs fields.
- Value
- This trait represents values we know to encode and decode from their database type.
Functions§
- query
- Open a context allowing you to manipulate a query.