Struct sqlx_oldapi::mssql::Mssql  
source ยท 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
ยงtype Connection = MssqlConnection
 
type Connection = MssqlConnection
The concrete 
Connection implementation for this database.ยงtype TransactionManager = MssqlTransactionManager
 
type TransactionManager = MssqlTransactionManager
The concrete 
TransactionManager implementation for this database.ยงtype QueryResult = MssqlQueryResult
 
type QueryResult = MssqlQueryResult
The concrete 
QueryResult implementation for this database.ยงtype Column = MssqlColumn
 
type Column = MssqlColumn
The concrete 
Column implementation for this database.ยงtype TypeInfo = MssqlTypeInfo
 
type TypeInfo = MssqlTypeInfo
The concrete 
TypeInfo implementation for this database.ยง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 NaiveDateTime
 
impl Decode<'_, Mssql> for NaiveDateTime
Decodes DateTime2N values received from the server
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 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 as Database>::TypeInfo>
fn size_hint(&self) -> usize
sourceยงimpl Encode<'_, Mssql> for NaiveDate
 
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 as Database>::TypeInfo>
fn size_hint(&self) -> usize
sourceยงimpl Encode<'_, Mssql> for NaiveDateTime
 
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 as Database>::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, Global>
 
impl Encode<'_, Mssql> for Vec<u8, Global>
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 as Database>::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 as Database>::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 as Database>::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 as Database>::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 as Database>::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 as Database>::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 as Database>::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 as Database>::TypeInfo>
fn size_hint(&self) -> usize
sourceยงimpl<'q, T> Encode<'q, Mssql> for Option<T>where
    T: 'q + Encode<'q, Mssql>,
 
impl<'q, T> Encode<'q, Mssql> for Option<T>where T: 'q + Encode<'q, Mssql>,
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 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 NaiveDate
 
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
 
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 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, Global>
 
impl Type<Mssql> for Vec<u8, Global>
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
Auto Trait Implementationsยง
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