Struct sqlx_core::mssql::Mssql

source ·
pub struct Mssql;
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

Formats the value using the given formatter. Read more
source§

impl Decode<'_, Mssql> for String

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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 Cow<'r, str>

source§

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 &str

source§

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

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> 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>) -> 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>) -> 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>) -> 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::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for f32

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> 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::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for f64

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> 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::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for i16

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> 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::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for i32

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> 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::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for i64

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> 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::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for i8

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> 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::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for u8

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> 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::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

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

source§

fn encode(self, buf: &mut Vec<u8>) -> 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>) -> 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§

§

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> 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