[−][src]Crate sqlx
Modules
| arguments | Traits for passing arguments to SQL queries. |
| decode | Types and traits for decoding values from the database. |
| describe | Types for returning SQL type information about queries. |
| encode | Types and traits for encoding values to the database. |
| error | Error and Result types. |
| mysql | feature="mysql"MySQL database and connection types. |
| pool | Pool for SQLx database connections. |
| postgres | feature="postgres"Postgres database and connection types. |
| row | Contains the Row and FromRow traits. |
| types | Traits linking Rust types to SQL types. |
Macros
| query | feature="macros"Statically checked SQL query with |
| query_as | feature="macros"A variant of query! which takes a path to an explicitly defined struct as the output type. |
| query_file | feature="macros"A variant of query! where the SQL query is stored in a separate file. |
| query_file_as | feature="macros"Combines the syntaxes of query_as! and query_file!. |
Structs
| MySql | feature="mysql"MySQL database driver. |
| MySqlConnection | feature="mysql"An asynchronous connection to a MySql database. |
| PgConnection | feature="postgres"An asynchronous connection to a [Postgres][super::Postgres] database. |
| Pool | A pool of database connections. |
| Postgres | feature="postgres"Postgres database driver. |
| Query | Dynamic SQL query with bind parameters. Returned by [query]. |
| QueryAs | SQL query with bind parameters, which maps rows to an explicit output type. |
| Transaction |
Enums
| Error | A generic error that represents all the ways a method can fail inside of SQLx. |
Traits
| Connect | Represents a type that can directly establish a new connection. |
| Connection | Represents a single database connection rather than a pool of database connections. |
| Database | A database driver. |
| Executor | Encapsulates query execution on the database. |
| FromRow | A record that can be built from a row returned from by the database. |
| Row | Represents a single row of the result set. |
Functions
| query | Construct a full SQL query that can be chained to bind parameters and executed. |
| query_as | Construct a dynamic SQL query with an explicit output type implementing FromRow. |
Type Definitions
| MySqlPool | feature="mysql"An alias for |
| PgPool | feature="postgres"An alias for |
| Result | A specialized |