Crate ormlitex
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.
- 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.
- 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
- FromRow
- IntoArguments
- Model
- Derive macro for
#[derive(Model)]
It additionally generates FromRow for the struct, since
Model requires FromRow. - TableMeta