Modules
Macros
- Statically checked SQL query with
println!()style syntax. - A variant of query! which takes a path to an explicitly defined struct as the output type.
Structs
- An asynchronous pool of SQLx database connections.
- Configuration options for
Pool.
Enums
- Represents all the ways a method can fail within SQLx.
Traits
- Acquire connections or transactions from a database in a generic way.
- A tuple of arguments to be sent to the database.
- Represents a single database connection.
- A database driver.
- A type that can be decoded from the database.
- Encode a single value to be sent to the database.
- A type that contains or can provide a database connection to use for executing queries against the database.
- A record that can be built from a row returned by the database.
- The core trait. a struct that implements
Modelcan also implementHasModelBuilder, (and is required to implementInsertable) - Represents a single row from the database.
Functions
- Make a SQL query.
- Make a SQL query that is mapped to a concrete type using
FromRow. - Make a SQL query, with the given arguments, that is mapped to a concrete type using
FromRow. - Make a SQL query, with the given arguments.
Type Definitions
- An owned dynamically typed
Futurefor use in cases where you can’t statically type your result or need to add some indirection.
Derive Macros
- Derive macro for
#[derive(Model)]It additionally generates FromRow for the struct, since Model requires FromRow.