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