pub struct Mssql;
Available on crate feature
mssql
only.Expand description
MSSQL database driver.
Trait Implementations§
Source§impl Database for Mssql
impl Database for Mssql
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§impl Decode<'_, Mssql> for BigDecimal
impl Decode<'_, Mssql> for BigDecimal
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for DateTime<FixedOffset>
impl Decode<'_, Mssql> for DateTime<FixedOffset>
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for DateTime<Utc>
impl Decode<'_, Mssql> for DateTime<Utc>
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for Decimal
impl Decode<'_, Mssql> for Decimal
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for NaiveDate
Decodes Date values received from the server
impl Decode<'_, Mssql> for NaiveDate
Decodes Date values received from the server
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for NaiveDateTime
Decodes DateTime2N values received from the server
impl Decode<'_, Mssql> for NaiveDateTime
Decodes DateTime2N values received from the server
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for NaiveTime
Decodes Time values received from the server
impl Decode<'_, Mssql> for NaiveTime
Decodes Time values received from the server
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for String
impl Decode<'_, Mssql> for String
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for Vec<u8>
impl Decode<'_, Mssql> for Vec<u8>
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for bool
impl Decode<'_, Mssql> for bool
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for f32
impl Decode<'_, Mssql> for f32
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for f64
impl Decode<'_, Mssql> for f64
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for i16
impl Decode<'_, Mssql> for i16
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for i32
impl Decode<'_, Mssql> for i32
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for i64
impl Decode<'_, Mssql> for i64
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for i8
impl Decode<'_, Mssql> for i8
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for u16
impl Decode<'_, Mssql> for u16
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for u32
impl Decode<'_, Mssql> for u32
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for u64
impl Decode<'_, Mssql> for u64
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Mssql> for u8
impl Decode<'_, Mssql> for u8
Source§fn decode(value: MssqlValueRef<'_>) -> Result<Self, BoxDynError>
fn decode(value: MssqlValueRef<'_>) -> 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 Cow<'r, [u8]>
impl<'r> Decode<'r, Mssql> for Cow<'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 Cow<'r, str>
impl<'r> Decode<'r, Mssql> for Cow<'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, T> Decode<'r, Mssql> for Json<T>where
T: Deserialize<'r> + 'r,
impl<'r, T> Decode<'r, Mssql> for Json<T>where
T: Deserialize<'r> + 'r,
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 Encode<'_, Mssql> for &[u8]
impl Encode<'_, Mssql> for &[u8]
fn produces(&self) -> Option<MssqlTypeInfo>
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for &str
impl Encode<'_, Mssql> for &str
fn produces(&self) -> Option<MssqlTypeInfo>
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for BigDecimal
impl Encode<'_, Mssql> for BigDecimal
fn produces(&self) -> Option<MssqlTypeInfo>
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for Cow<'_, str>
impl Encode<'_, Mssql> for Cow<'_, str>
fn produces(&self) -> Option<MssqlTypeInfo>
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn size_hint(&self) -> usize
Source§impl<'r> Encode<'_, Mssql> for Cow<'r, [u8]>
impl<'r> Encode<'_, Mssql> for Cow<'r, [u8]>
fn produces(&self) -> Option<MssqlTypeInfo>
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn size_hint(&self) -> usize
Source§impl<T> Encode<'_, Mssql> for DateTime<T>where
T: TimeZone,
impl<T> Encode<'_, Mssql> for DateTime<T>where
T: TimeZone,
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for Decimal
impl Encode<'_, Mssql> for Decimal
fn produces(&self) -> Option<MssqlTypeInfo>
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn size_hint(&self) -> usize
Source§impl<T> Encode<'_, Mssql> for Json<T>where
T: Serialize,
impl<T> Encode<'_, Mssql> for Json<T>where
T: Serialize,
fn produces(&self) -> Option<MssqlTypeInfo>
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for NaiveDate
Encodes Date objects for transfer over the wire
impl Encode<'_, Mssql> for NaiveDate
Encodes Date objects for transfer over the wire
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for NaiveDateTime
Encodes DateTime objects for transfer over the wire
impl Encode<'_, Mssql> for NaiveDateTime
Encodes DateTime objects for transfer over the wire
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for NaiveTime
Encodes Time objects for transfer over the wire
impl Encode<'_, Mssql> for NaiveTime
Encodes Time objects for transfer over the wire
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for String
impl Encode<'_, Mssql> for String
fn produces(&self) -> Option<MssqlTypeInfo>
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for Vec<u8>
impl Encode<'_, Mssql> for Vec<u8>
fn produces(&self) -> Option<MssqlTypeInfo>
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for bool
impl Encode<'_, Mssql> for bool
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for f32
impl Encode<'_, Mssql> for f32
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for f64
impl Encode<'_, Mssql> for f64
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for i16
impl Encode<'_, Mssql> for i16
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for i32
impl Encode<'_, Mssql> for i32
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for i64
impl Encode<'_, Mssql> for i64
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for i8
impl Encode<'_, Mssql> for i8
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for u16
impl Encode<'_, Mssql> for u16
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for u32
impl Encode<'_, Mssql> for u32
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for u64
impl Encode<'_, Mssql> for u64
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Mssql> for u8
impl Encode<'_, Mssql> for u8
Source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
Source§impl<'q, T: 'q + Encode<'q, Mssql>> Encode<'q, Mssql> for Option<T>
impl<'q, T: 'q + Encode<'q, Mssql>> Encode<'q, Mssql> for Option<T>
Source§impl HasArguments<'_> for Mssql
impl HasArguments<'_> for Mssql
Source§impl<'q> HasStatement<'q> for Mssql
impl<'q> HasStatement<'q> for Mssql
Source§impl<'r> HasValueRef<'r> for Mssql
impl<'r> HasValueRef<'r> for Mssql
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 BigDecimal
impl Type<Mssql> for BigDecimal
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 Cow<'_, str>
impl Type<Mssql> for Cow<'_, 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<'r> Type<Mssql> for Cow<'r, [u8]>
impl<'r> Type<Mssql> for Cow<'r, [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<T> Type<Mssql> for DateTime<T>where
T: TimeZone,
impl<T> Type<Mssql> for DateTime<T>where
T: TimeZone,
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
impl Type<Mssql> for Decimal
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> Type<Mssql> for Json<T>
impl<T> Type<Mssql> for Json<T>
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
Provides conversion of chrono::NaiveDate to MS SQL Date
impl Type<Mssql> for NaiveDate
Provides conversion of chrono::NaiveDate to MS SQL 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 NaiveDateTime
Provides conversion of chrono::DateTime (UTC) to MS SQL DateTime2N
impl Type<Mssql> for NaiveDateTime
Provides conversion of chrono::DateTime (UTC) to MS SQL DateTime2N
Note that MS SQL has a number of DateTime-related types and conversion might not work. During encoding, values are always encoded with the best possible precision, which uses 7 digits for nanoseconds.
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
Provides conversion of chrono::NaiveTime to MS SQL Time
impl Type<Mssql> for NaiveTime
Provides conversion of chrono::NaiveTime to MS SQL 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 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 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 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 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 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 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 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
Auto Trait Implementations§
impl Freeze for Mssql
impl RefUnwindSafe for Mssql
impl Send for Mssql
impl Sync for Mssql
impl Unpin 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> 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