Crate ormlite Copy item path
Summary Source database decode model postgres postgres
query Types and traits for the query
family of functions and macros. query_builder sqlite sqlite
types query Statically checked SQL query with println!()
style syntax. query_as A variant of query!
which takes a path to an explicitly defined struct
as the output type. Pool An asynchronous pool of SQLx database connections. PoolOptions Configuration options for Pool
. Error SqlxError Represents all the ways a method can fail within SQLx. Acquire Acquire connections or transactions from a database in a generic way. Arguments A tuple of arguments to be sent to the database. Column ColumnIndex A type that can be used to index into a Row
or Statement
. ConnectOptions Connection Represents a single database connection. Database A database driver. Decode A type that can be decoded from the database. Encode Encode a single value to be sent to the database. Executor A type that contains or can provide a database
connection to use for executing queries against the database. FromRow A record that can be built from a row returned by the database. Insert A struct that is Insert
is expected to have same fields as the model, excluding fields
that have sane defaults at the database level. Concretely, if you have a Person struct:
#[derive(ormlite::Model)]
struct Person {
id: i32,
name: String,
age: i32,
} IntoArguments Model The core trait. a struct that implements Model
can also implement HasModelBuilder
, (and is required to implement Insertable
) Row Represents a single row from the database. StreamExt An extension trait for the Stream
trait that provides a variety of
convenient combinator functions. TableMeta query Execute a single SQL query as a prepared statement (transparently cached). query_as Execute a single SQL query as a prepared statement (transparently cached).
Maps rows to Rust types using FromRow
. query_as_with Execute a single SQL query, with the given arguments as a prepared statement (transparently cached).
Maps rows to Rust types using FromRow
. query_with Execute a SQL query as a prepared statement (transparently cached), with the given arguments. BoxFuture An owned dynamically typed Future
for use in cases where you can’t
statically type your result or need to add some indirection. Result Decode Encode Enum FromRow Insert IntoArguments Model Derive macro for #[derive(Model)]
It additionally generates FromRow for the struct, since
Model requires FromRow. TableMeta