pub struct Mssql;Expand description
MSSQL database marker for SQLx-core traits.
Trait Implementations§
Source§impl Database for Mssql
impl Database for Mssql
Source§const URL_SCHEMES: &'static [&'static str]
const URL_SCHEMES: &'static [&'static str]
The schemes for database URLs that should match this driver.
Source§type Connection = MssqlConnection
type Connection = MssqlConnection
The concrete
Connection implementation for this database.Source§type TransactionManager = MssqlTransactionManager
type TransactionManager = MssqlTransactionManager
The concrete
TransactionManager implementation for this database.Source§type QueryResult = MssqlQueryResult
type QueryResult = MssqlQueryResult
The concrete
QueryResult implementation for this database.Source§type Column = MssqlColumn
type Column = MssqlColumn
The concrete
Column implementation for this database.Source§type TypeInfo = MssqlTypeInfo
type TypeInfo = MssqlTypeInfo
The concrete
TypeInfo implementation for this database.Source§type Value = MssqlValue
type Value = MssqlValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was
received from the database.
Source§type ValueRef<'r> = MssqlValueRef<'r>
type ValueRef<'r> = MssqlValueRef<'r>
The concrete type used to hold a reference to the not-yet-decoded value that has just been
received from the database.
Source§type Arguments = MssqlArguments
type Arguments = MssqlArguments
The concrete
Arguments implementation for this database.Source§type ArgumentBuffer = Vec<MssqlArgumentValue>
type ArgumentBuffer = Vec<MssqlArgumentValue>
The concrete type used as a buffer for arguments while encoding.
Source§type Statement = MssqlStatement
type Statement = MssqlStatement
The concrete
Statement implementation for this database.Source§impl DatabaseExt for Mssql
Available on crate feature offline only.
impl DatabaseExt for Mssql
Available on crate feature
offline only.const DATABASE_PATH: &'static str = "sqlx_mssql_odbc::Mssql"
const ROW_PATH: &'static str = "sqlx_mssql_odbc::MssqlRow"
fn describe_blocking( query: &str, database_url: &str, driver_config: &Config, ) -> Result<Describe<Self>>
fn db_path() -> Path
fn row_path() -> Path
Source§impl<'r> Decode<'r, Mssql> for BigDecimal
Available on crate feature bigdecimal only.
impl<'r> Decode<'r, Mssql> for BigDecimal
Available on crate feature
bigdecimal only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for NaiveDate
Available on crate feature chrono only.
impl<'r> Decode<'r, Mssql> for NaiveDate
Available on crate feature
chrono only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for NaiveTime
Available on crate feature chrono only.
impl<'r> Decode<'r, Mssql> for NaiveTime
Available on crate feature
chrono only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for NaiveDateTime
Available on crate feature chrono only.
impl<'r> Decode<'r, Mssql> for NaiveDateTime
Available on crate feature
chrono only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for DateTime<Utc>
Available on crate feature chrono only.
impl<'r> Decode<'r, Mssql> for DateTime<Utc>
Available on crate feature
chrono only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for DateTime<FixedOffset>
Available on crate feature chrono only.
impl<'r> Decode<'r, Mssql> for DateTime<FixedOffset>
Available on crate feature
chrono only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for DateTime<Local>
Available on crate feature chrono only.
impl<'r> Decode<'r, Mssql> for DateTime<Local>
Available on crate feature
chrono only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for Date
Available on crate feature time only.
impl<'r> Decode<'r, Mssql> for Date
Available on crate feature
time only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for Time
Available on crate feature time only.
impl<'r> Decode<'r, Mssql> for Time
Available on crate feature
time only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for PrimitiveDateTime
Available on crate feature time only.
impl<'r> Decode<'r, Mssql> for PrimitiveDateTime
Available on crate feature
time only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for OffsetDateTime
Available on crate feature time only.
impl<'r> Decode<'r, Mssql> for OffsetDateTime
Available on crate feature
time only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for Decimal
Available on crate features decimal or rust_decimal only.
impl<'r> Decode<'r, Mssql> for Decimal
Available on crate features
decimal or rust_decimal only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for Geometry<f64>
Available on crate feature spatial only.
impl<'r> Decode<'r, Mssql> for Geometry<f64>
Available on crate feature
spatial only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T> Decode<'r, Mssql> for Json<T>where
T: DeserializeOwned,
Available on crate feature json only.
impl<'r, T> Decode<'r, Mssql> for Json<T>where
T: DeserializeOwned,
Available on crate feature
json only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for Uuid
Available on crate feature uuid only.
impl<'r> Decode<'r, Mssql> for Uuid
Available on crate feature
uuid only.Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for i8
impl<'r> Decode<'r, Mssql> for i8
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for i16
impl<'r> Decode<'r, Mssql> for i16
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for i32
impl<'r> Decode<'r, Mssql> for i32
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for i64
impl<'r> Decode<'r, Mssql> for i64
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for u8
impl<'r> Decode<'r, Mssql> for u8
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for u16
impl<'r> Decode<'r, Mssql> for u16
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for u32
impl<'r> Decode<'r, Mssql> for u32
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for u64
impl<'r> Decode<'r, Mssql> for u64
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for bool
impl<'r> Decode<'r, Mssql> for bool
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for f32
impl<'r> Decode<'r, Mssql> for f32
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for f64
impl<'r> Decode<'r, Mssql> for f64
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for String
impl<'r> Decode<'r, Mssql> for String
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for &'r str
impl<'r> Decode<'r, Mssql> for &'r str
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for Vec<u8>
impl<'r> Decode<'r, Mssql> for Vec<u8>
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for &'r [u8]
impl<'r> Decode<'r, Mssql> for &'r [u8]
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for Date
impl<'r> Decode<'r, Mssql> for Date
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for Time
impl<'r> Decode<'r, Mssql> for Time
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Mssql> for Timestamp
impl<'r> Decode<'r, Mssql> for Timestamp
Source§fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'q, T> Encode<'q, Mssql> for Option<T>
impl<'q, T> Encode<'q, Mssql> for Option<T>
Source§fn encode(
self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode( self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Writes the value of
self into buf in the expected format for the database.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<MssqlTypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for i8
impl<'q> Encode<'q, Mssql> for i8
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for i16
impl<'q> Encode<'q, Mssql> for i16
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for i32
impl<'q> Encode<'q, Mssql> for i32
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for i64
impl<'q> Encode<'q, Mssql> for i64
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for u8
impl<'q> Encode<'q, Mssql> for u8
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for u16
impl<'q> Encode<'q, Mssql> for u16
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for u32
impl<'q> Encode<'q, Mssql> for u32
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for u64
impl<'q> Encode<'q, Mssql> for u64
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for bool
impl<'q> Encode<'q, Mssql> for bool
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for f32
impl<'q> Encode<'q, Mssql> for f32
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for f64
impl<'q> Encode<'q, Mssql> for f64
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for &'q str
impl<'q> Encode<'q, Mssql> for &'q str
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for String
impl<'q> Encode<'q, Mssql> for String
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for &'q [u8]
impl<'q> Encode<'q, Mssql> for &'q [u8]
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for Vec<u8>
impl<'q> Encode<'q, Mssql> for Vec<u8>
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for Date
impl<'q> Encode<'q, Mssql> for Date
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for Time
impl<'q> Encode<'q, Mssql> for Time
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for Timestamp
impl<'q> Encode<'q, Mssql> for Timestamp
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for BigDecimal
Available on crate feature bigdecimal only.
impl<'q> Encode<'q, Mssql> for BigDecimal
Available on crate feature
bigdecimal only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for NaiveDate
Available on crate feature chrono only.
impl<'q> Encode<'q, Mssql> for NaiveDate
Available on crate feature
chrono only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for NaiveTime
Available on crate feature chrono only.
impl<'q> Encode<'q, Mssql> for NaiveTime
Available on crate feature
chrono only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for NaiveDateTime
Available on crate feature chrono only.
impl<'q> Encode<'q, Mssql> for NaiveDateTime
Available on crate feature
chrono only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for DateTime<Utc>
Available on crate feature chrono only.
impl<'q> Encode<'q, Mssql> for DateTime<Utc>
Available on crate feature
chrono only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for DateTime<FixedOffset>
Available on crate feature chrono only.
impl<'q> Encode<'q, Mssql> for DateTime<FixedOffset>
Available on crate feature
chrono only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for DateTime<Local>
Available on crate feature chrono only.
impl<'q> Encode<'q, Mssql> for DateTime<Local>
Available on crate feature
chrono only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for Date
Available on crate feature time only.
impl<'q> Encode<'q, Mssql> for Date
Available on crate feature
time only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for Time
Available on crate feature time only.
impl<'q> Encode<'q, Mssql> for Time
Available on crate feature
time only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for PrimitiveDateTime
Available on crate feature time only.
impl<'q> Encode<'q, Mssql> for PrimitiveDateTime
Available on crate feature
time only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for OffsetDateTime
Available on crate feature time only.
impl<'q> Encode<'q, Mssql> for OffsetDateTime
Available on crate feature
time only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for Decimal
Available on crate features decimal or rust_decimal only.
impl<'q> Encode<'q, Mssql> for Decimal
Available on crate features
decimal or rust_decimal only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for Geometry<f64>
Available on crate feature spatial only.
impl<'q> Encode<'q, Mssql> for Geometry<f64>
Available on crate feature
spatial only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q, T> Encode<'q, Mssql> for Json<T>
Available on crate feature json only.
impl<'q, T> Encode<'q, Mssql> for Json<T>
Available on crate feature
json only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for Uuid
Available on crate feature uuid only.
impl<'q> Encode<'q, Mssql> for Uuid
Available on crate feature
uuid only.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Writes the value of
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q> Encode<'q, Mssql> for Arc<str>
Available on crate feature any only.
impl<'q> Encode<'q, Mssql> for Arc<str>
Available on crate feature
any only.Source§fn encode(
self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode( self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
Writes the value of
self into buf in the expected format for the database.Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, BoxDynError>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
impl HasStatementCache for Mssql
Source§impl MigrateDatabase for Mssql
Available on crate feature migrate only.
impl MigrateDatabase for Mssql
Available on crate feature
migrate only.fn create_database( url: &str, ) -> impl Future<Output = Result<(), Error>> + Send + '_
fn database_exists( url: &str, ) -> impl Future<Output = Result<bool, Error>> + Send + '_
fn drop_database( url: &str, ) -> impl Future<Output = Result<(), Error>> + Send + '_
fn force_drop_database( _url: &str, ) -> impl Future<Output = Result<(), Error>> + Send
Source§impl Type<Mssql> for i8
impl Type<Mssql> for i8
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for i16
impl Type<Mssql> for i16
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for i32
impl Type<Mssql> for i32
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for i64
impl Type<Mssql> for i64
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for u8
impl Type<Mssql> for u8
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for u16
impl Type<Mssql> for u16
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for u32
impl Type<Mssql> for u32
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for u64
impl Type<Mssql> for u64
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for bool
impl Type<Mssql> for bool
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for f32
impl Type<Mssql> for f32
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for f64
impl Type<Mssql> for f64
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for str
impl Type<Mssql> for str
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for String
impl Type<Mssql> for String
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for [u8]
impl Type<Mssql> for [u8]
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for Vec<u8>
impl Type<Mssql> for Vec<u8>
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for Date
impl Type<Mssql> for Date
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for Time
impl Type<Mssql> for Time
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for Timestamp
impl Type<Mssql> for Timestamp
Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for BigDecimal
Available on crate feature bigdecimal only.
impl Type<Mssql> for BigDecimal
Available on crate feature
bigdecimal only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for NaiveDate
Available on crate feature chrono only.
impl Type<Mssql> for NaiveDate
Available on crate feature
chrono only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for NaiveTime
Available on crate feature chrono only.
impl Type<Mssql> for NaiveTime
Available on crate feature
chrono only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for NaiveDateTime
Available on crate feature chrono only.
impl Type<Mssql> for NaiveDateTime
Available on crate feature
chrono only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for DateTime<Utc>
Available on crate feature chrono only.
impl Type<Mssql> for DateTime<Utc>
Available on crate feature
chrono only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for DateTime<FixedOffset>
Available on crate feature chrono only.
impl Type<Mssql> for DateTime<FixedOffset>
Available on crate feature
chrono only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for DateTime<Local>
Available on crate feature chrono only.
impl Type<Mssql> for DateTime<Local>
Available on crate feature
chrono only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for Date
Available on crate feature time only.
impl Type<Mssql> for Date
Available on crate feature
time only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for Time
Available on crate feature time only.
impl Type<Mssql> for Time
Available on crate feature
time only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for PrimitiveDateTime
Available on crate feature time only.
impl Type<Mssql> for PrimitiveDateTime
Available on crate feature
time only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for OffsetDateTime
Available on crate feature time only.
impl Type<Mssql> for OffsetDateTime
Available on crate feature
time only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for Decimal
Available on crate features decimal or rust_decimal only.
impl Type<Mssql> for Decimal
Available on crate features
decimal or rust_decimal only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for Geometry<f64>
Available on crate feature spatial only.
impl Type<Mssql> for Geometry<f64>
Available on crate feature
spatial only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl<T: ?Sized> Type<Mssql> for Json<T>
Available on crate feature json only.
impl<T: ?Sized> Type<Mssql> for Json<T>
Available on crate feature
json only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Mssql> for Uuid
Available on crate feature uuid only.
impl Type<Mssql> for Uuid
Available on crate feature
uuid only.Source§fn type_info() -> MssqlTypeInfo
fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &MssqlTypeInfo) -> bool
fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl TypeChecking for Mssql
impl TypeChecking for Mssql
Source§const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Weak
const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Weak
Describes how the database in question typechecks query parameters.
Source§fn param_type_for_id(
info: &Self::TypeInfo,
preferred_crates: &PreferredCrates,
) -> Result<&'static str, Error>
fn param_type_for_id( info: &Self::TypeInfo, preferred_crates: &PreferredCrates, ) -> Result<&'static str, Error>
Get the full path of the Rust type that corresponds to the given
TypeInfo, if applicable. Read moreSource§fn return_type_for_id(
info: &Self::TypeInfo,
preferred_crates: &PreferredCrates,
) -> Result<&'static str, Error>
fn return_type_for_id( info: &Self::TypeInfo, preferred_crates: &PreferredCrates, ) -> Result<&'static str, Error>
Get the full path of the Rust type that corresponds to the given
TypeInfo, if applicable. Read moreAuto Trait Implementations§
impl Freeze for Mssql
impl RefUnwindSafe for Mssql
impl Send for Mssql
impl Sync for Mssql
impl Unpin for Mssql
impl UnsafeUnpin for Mssql
impl UnwindSafe for Mssql
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more