[−][src]Crate sqlx
Modules
| arguments | Traits for passing arguments to SQL queries. |
| cursor | Contains the |
| database | |
| decode | Types and traits for decoding values from the database. |
| encode | Types and traits for encoding values for the database. |
| error | Errorand Result types. |
| executor | |
| mysql | feature="mysql"MySQL database and connection types. |
| pool | Pool for SQLx database connections. |
| postgres | feature="postgres"Postgres database and connection types. |
| prelude | Convenience re-export of common traits. |
| query | |
| row | Contains the |
| sqlite | feature="sqlite"SQLite database and connection types. |
| types | Conversions between Rust and SQL types. |
| value |
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_as_unchecked | feature="macros"A variant of query_as! which does not check the input or output types. This still does parse the query to ensure it's syntactically and semantically valid for the current database. |
| 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!. |
| query_file_as_unchecked | feature="macros"A variant of query_file_as! which does not check the input or output types. This still does parse the query to ensure it's syntactically and semantically valid for the current database. |
| query_file_unchecked | feature="macros"A variant of query_file! which does not check the input or output types. This still does parse the query to ensure it's syntactically and semantically valid for the current database. |
| query_unchecked | feature="macros"A variant of query! which does not check the input or output types. This still does parse the query to ensure it's syntactically and semantically valid for the current database. |
Structs
| MySql | feature="mysql"MySQL database driver. |
| MySqlConnection | feature="mysql"An asynchronous connection to a |
| PgConnection | feature="postgres"An asynchronous connection to a Postgres database. |
| Pool | A pool of database connections. |
| Postgres | feature="postgres"Postgres database driver. |
| Query | Raw SQL query with bind parameters. Returned by |
| QueryAs | Raw SQL query with bind parameters, mapped to a concrete type
using |
| Sqlite | feature="sqlite"Sqlite database driver. |
| SqliteConnection | feature="sqlite"A connection to a Sqlite database. |
| Transaction | Represents an in-progress database 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. |
| Cursor | Represents a result set, which is generated by executing a query against the database. |
| Database | A database driver. |
| Execute | A type that may be executed against a database connection. |
| 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. |
| Row | Represents a single row from the database. |
| Type | Indicates that a SQL type is supported for a database. |
Functions
| query | Construct a raw SQL query that can be chained to bind parameters and executed. |
| query_as | Construct a raw SQL query that is mapped to a concrete type
using |
Type Definitions
| MySqlPool | feature="mysql"An alias for |
| PgPool | feature="postgres"An alias for |
| Result | A specialized |
| SqlitePool | feature="sqlite"An alias for |
Derive Macros
| FromRow | |
| Type |