Struct sqlx::mssql::Mssql

source ยท
pub struct Mssql;
Available on crate feature mssql only.
Expand description

MSSQL database driver.

Trait Implementationsยง

sourceยง

impl Database for Mssql

ยง

type Connection = MssqlConnection

The concrete Connection implementation for this database.
ยง

type TransactionManager = MssqlTransactionManager

The concrete TransactionManager implementation for this database.
ยง

type Row = MssqlRow

The concrete Row implementation for this database.
ยง

type QueryResult = MssqlQueryResult

The concrete QueryResult implementation for this database.
ยง

type Column = MssqlColumn

The concrete Column implementation for this database.
ยง

type TypeInfo = MssqlTypeInfo

The concrete TypeInfo implementation for this database.
ยง

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 Debug for Mssql

sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
sourceยง

impl Decode<'_, Mssql> for String

sourceยง

fn decode( value: MssqlValueRef<'_> ) -> Result<String, Box<dyn Error + Sync + Send + 'static, Global>>

Decode a new value of this type using a raw value from the database.
sourceยง

impl Decode<'_, Mssql> for bool

sourceยง

fn decode( value: MssqlValueRef<'_> ) -> Result<bool, Box<dyn Error + Sync + Send + 'static, Global>>

Decode a new value of this type using a raw value from the database.
sourceยง

impl Decode<'_, Mssql> for f32

sourceยง

fn decode( value: MssqlValueRef<'_> ) -> Result<f32, Box<dyn Error + Sync + Send + 'static, Global>>

Decode a new value of this type using a raw value from the database.
sourceยง

impl Decode<'_, Mssql> for f64

sourceยง

fn decode( value: MssqlValueRef<'_> ) -> Result<f64, Box<dyn Error + Sync + Send + 'static, Global>>

Decode a new value of this type using a raw value from the database.
sourceยง

impl Decode<'_, Mssql> for i16

sourceยง

fn decode( value: MssqlValueRef<'_> ) -> Result<i16, Box<dyn Error + Sync + Send + 'static, Global>>

Decode a new value of this type using a raw value from the database.
sourceยง

impl Decode<'_, Mssql> for i32

sourceยง

fn decode( value: MssqlValueRef<'_> ) -> Result<i32, Box<dyn Error + Sync + Send + 'static, Global>>

Decode a new value of this type using a raw value from the database.
sourceยง

impl Decode<'_, Mssql> for i64

sourceยง

fn decode( value: MssqlValueRef<'_> ) -> Result<i64, Box<dyn Error + Sync + Send + 'static, Global>>

Decode a new value of this type using a raw value from the database.
sourceยง

impl Decode<'_, Mssql> for i8

sourceยง

fn decode( value: MssqlValueRef<'_> ) -> Result<i8, Box<dyn Error + Sync + Send + 'static, Global>>

Decode a new value of this type using a raw value from the database.
sourceยง

impl Decode<'_, Mssql> for u8

sourceยง

fn decode( value: MssqlValueRef<'_> ) -> Result<u8, Box<dyn Error + Sync + Send + 'static, Global>>

Decode a new value of this type using a raw value from the database.
sourceยง

impl<'r> Decode<'r, Mssql> for Cow<'r, str>

sourceยง

fn decode( value: MssqlValueRef<'r> ) -> Result<Cow<'r, str>, Box<dyn Error + Sync + Send + 'static, Global>>

Decode a new value of this type using a raw value from the database.
sourceยง

impl Encode<'_, Mssql> for &str

sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn size_hint(&self) -> usize

sourceยง

impl Encode<'_, Mssql> for Cow<'_, str>

sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn size_hint(&self) -> usize

sourceยง

impl Encode<'_, Mssql> for String

sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn size_hint(&self) -> usize

sourceยง

impl Encode<'_, Mssql> for bool

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

sourceยง

fn size_hint(&self) -> usize

sourceยง

impl Encode<'_, Mssql> for f32

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

sourceยง

fn size_hint(&self) -> usize

sourceยง

impl Encode<'_, Mssql> for f64

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

sourceยง

fn size_hint(&self) -> usize

sourceยง

impl Encode<'_, Mssql> for i16

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

sourceยง

fn size_hint(&self) -> usize

sourceยง

impl Encode<'_, Mssql> for i32

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

sourceยง

fn size_hint(&self) -> usize

sourceยง

impl Encode<'_, Mssql> for i64

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

sourceยง

fn size_hint(&self) -> usize

sourceยง

impl Encode<'_, Mssql> for i8

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

sourceยง

fn size_hint(&self) -> usize

sourceยง

impl Encode<'_, Mssql> for u8

sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

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.
sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

sourceยง

fn size_hint(&self) -> usize

sourceยง

impl<'q, T> Encode<'q, Mssql> for Option<T>where T: 'q + Encode<'q, Mssql>,

sourceยง

fn encode(self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf in the expected format for the database.
sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull

Writes the value of self into buf without moving self. Read more
sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

sourceยง

fn size_hint(&self) -> usize

sourceยง

impl HasArguments<'_> for Mssql

ยง

type Database = Mssql

ยง

type Arguments = MssqlArguments

The concrete Arguments implementation for this database.
ยง

type ArgumentBuffer = Vec<u8, Global>

The concrete type used as a buffer for arguments while encoding.
sourceยง

impl<'q> HasStatement<'q> for Mssql

ยง

type Database = Mssql

ยง

type Statement = MssqlStatement<'q>

The concrete Statement implementation for this database.
sourceยง

impl<'r> HasValueRef<'r> for Mssql

ยง

type Database = Mssql

ยง

type ValueRef = 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ยง

impl Type<Mssql> for Cow<'_, str>

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

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

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

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

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

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

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

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

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

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

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

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

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

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

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

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

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

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

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

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

sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for Twhere T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
sourceยง

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable ยท sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable ยท sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
sourceยง

impl<T> From<T> for T

const: unstable ยท sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

sourceยง

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable ยท sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

sourceยง

impl<T> Same<T> for T

ยง

type Output = T

Should always be Self
sourceยง

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

ยง

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable ยท sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable ยท sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
ยง

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

ยง

fn vzip(self) -> V