Crate sqlx_core

Source
Expand description

Core of SQLx, the rust SQL toolkit.

§Note: Semver Exempt API

The API of this crate is not meant for general use and does not follow Semantic Versioning. The only crate that follows Semantic Versioning in the project is the sqlx crate itself. If you are building a custom SQLx driver, you should pin an exact version for sqlx-core to avoid breakages:

sqlx-core = { version = "=0.6.2" }

And then make releases in lockstep with sqlx-core. We recommend all driver crates, in-tree or otherwise, use the same version numbers as sqlx-core to avoid confusion.

Re-exports§

pub use error::Error;
pub use error::Result;
pub use percent_encoding;
pub use url;
pub use bytes;

Modules§

acquire
arguments
Types and traits for passing arguments to SQL queries.
column
common
connection
database
Traits to represent a database driver.
decode
Provides Decode for decoding values from the database.
describe
driver_prelude
Helper module to get drivers compiling again that used to be in this crate, to avoid having to replace tons of use crate::<...> imports.
encode
Provides Encode for encoding values for the database.
error
Types for working with errors produced by SQLx.
executor
ext
from_row
fs
hash_map
A hash map implemented with quadratic probing and SIMD lookup.
io
logger
net
pool
Provides the connection pool for asynchronous SQLx connections.
query
query_as
query_builder
Runtime query-builder API.
query_scalar
raw_sql
row
rt
statement
sync
transaction
type_checking
type_info
types
Conversions between Rust and SQL types.
value

Macros§

err_protocol
Format an error message as a Protocol error
impl_acquire
impl_column_index_for_row
impl_column_index_for_statement
impl_encode_for_option
impl_into_arguments_for_arguments
impl_statement_query
impl_type_checking
try_stream

Structs§

HashMap
A hash map implemented with quadratic probing and SIMD lookup.
IndexMap
A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
SmallVec
A Vec-like container that can store a small number of elements inline.
Url
A parsed URL record.

Enums§

Either
The enum Either with variants Left and Right is a general purpose sum type with two cases.