Struct sqlx::MySql [−][src]
pub struct MySql;
mysql
only.Expand description
MySQL database driver.
Trait Implementations
type Connection = MySqlConnection
type Connection = MySqlConnection
The concrete Connection
implementation for this database.
The concrete TransactionManager
implementation for this database.
type QueryResult = MySqlQueryResult
type QueryResult = MySqlQueryResult
The concrete QueryResult
implementation for this database.
type Column = MySqlColumn
type Column = MySqlColumn
The concrete Column
implementation for this database.
type TypeInfo = MySqlTypeInfo
type TypeInfo = MySqlTypeInfo
The concrete TypeInfo
implementation for this database.
type Value = MySqlValue
type Value = MySqlValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was received from the database. Read more
pub fn decode(
value: MySqlValueRef<'_>
) -> Result<BigDecimal, Box<dyn Error + Sync + Send + 'static, Global>>
pub fn decode(
value: MySqlValueRef<'_>
) -> Result<BigDecimal, Box<dyn Error + Sync + Send + 'static, Global>>
Decode a new value of this type using a raw value from the database.
pub fn decode(
value: MySqlValueRef<'_>
) -> Result<Hyphenated, Box<dyn Error + Sync + Send + 'static, Global>>
pub fn decode(
value: MySqlValueRef<'_>
) -> Result<Hyphenated, Box<dyn Error + Sync + Send + 'static, Global>>
Decode a new value of this type using a raw value from the database.
Note: assumes the connection’s time_zone
is set to +00:00
(UTC).
Note: assumes the connection’s time_zone
is set to +00:00
(UTC).
pub fn decode(
value: MySqlValueRef<'r>
) -> Result<PrimitiveDateTime, Box<dyn Error + Sync + Send + 'static, Global>>
pub fn decode(
value: MySqlValueRef<'r>
) -> Result<PrimitiveDateTime, Box<dyn Error + Sync + Send + 'static, Global>>
Decode a new value of this type using a raw value from the database.
pub fn decode(
value: MySqlValueRef<'r>
) -> Result<NaiveDateTime, Box<dyn Error + Sync + Send + 'static, Global>>
pub fn decode(
value: MySqlValueRef<'r>
) -> Result<NaiveDateTime, Box<dyn Error + Sync + Send + 'static, Global>>
Decode a new value of this type using a raw value from the database.
pub fn decode(
value: MySqlValueRef<'r>
) -> Result<OffsetDateTime, Box<dyn Error + Sync + Send + 'static, Global>>
pub fn decode(
value: MySqlValueRef<'r>
) -> Result<OffsetDateTime, Box<dyn Error + Sync + Send + 'static, Global>>
Decode a new value of this type using a raw value from the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Note: assumes the connection’s time_zone
is set to +00:00
(UTC).
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Note: assumes the connection’s time_zone
is set to +00:00
(UTC).
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
type Arguments = MySqlArguments
type Arguments = MySqlArguments
The concrete Arguments
implementation for this database.
type ArgumentBuffer = Vec<u8, Global>
type ArgumentBuffer = Vec<u8, Global>
The concrete type used as a buffer for arguments while encoding.
type Statement = MySqlStatement<'q>
type Statement = MySqlStatement<'q>
The concrete Statement
implementation for this database.
type ValueRef = MySqlValueRef<'r>
type ValueRef = MySqlValueRef<'r>
The concrete type used to hold a reference to the not-yet-decoded value that has just been received from the database. Read more
Returns the canonical SQL type for this Rust type. Read more
Returns the canonical SQL type for this Rust type. Read more
Returns the canonical SQL type for this Rust type. Read more
Returns the canonical SQL type for this Rust type. Read more
Returns the canonical SQL type for this Rust type. Read more
Returns the canonical SQL type for this Rust type. Read more
Returns the canonical SQL type for this Rust type. Read more
Returns the canonical SQL type for this Rust type. Read more