pub struct Mssql;
mssql
only.Expand description
MSSQL database driver.
Trait Implementations
sourceimpl 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. Read more
sourceimpl Encode<'_, Mssql> for i32
impl Encode<'_, Mssql> for i32
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
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
sourceimpl Encode<'_, Mssql> for i16
impl Encode<'_, Mssql> for i16
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
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
sourceimpl Encode<'_, Mssql> for i64
impl Encode<'_, Mssql> for i64
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
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
sourceimpl Encode<'_, Mssql> for &'_ str
impl Encode<'_, Mssql> for &'_ str
pub fn produces(&self) -> Option<MssqlTypeInfo>
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
fn size_hint(&self) -> usize
sourceimpl Encode<'_, Mssql> for f32
impl Encode<'_, Mssql> for f32
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
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
sourceimpl Encode<'_, Mssql> for f64
impl Encode<'_, Mssql> for f64
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
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
sourceimpl Encode<'_, Mssql> for String
impl Encode<'_, Mssql> for String
pub fn produces(&self) -> Option<MssqlTypeInfo>
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
fn size_hint(&self) -> usize
sourceimpl Encode<'_, Mssql> for bool
impl Encode<'_, Mssql> for bool
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
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
sourceimpl Encode<'_, Mssql> for Cow<'_, str>
impl Encode<'_, Mssql> for Cow<'_, str>
pub fn produces(&self) -> Option<MssqlTypeInfo>
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
fn size_hint(&self) -> usize
sourceimpl Encode<'_, Mssql> for i8
impl Encode<'_, Mssql> for i8
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
sourcefn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
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
sourceimpl<'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>,
sourcepub fn encode(self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode(self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
sourcepub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
pub fn encode_by_ref(&self, buf: &mut Vec<u8, Global>) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
pub fn produces(&self) -> Option<MssqlTypeInfo>
pub fn size_hint(&self) -> usize
sourceimpl HasArguments<'_> for Mssql
impl HasArguments<'_> for Mssql
type Database = Mssql
type Arguments = MssqlArguments
type Arguments = MssqlArguments
The concrete Arguments
implementation for this database.
type ArgumentBuffer = Vec<u8, Global>
type ArgumentBuffer = Vec<u8, Global>
The concrete type used as a buffer for arguments while encoding.
sourceimpl<'q> HasStatement<'q> for Mssql
impl<'q> HasStatement<'q> for Mssql
type Database = Mssql
type Statement = MssqlStatement<'q>
type Statement = MssqlStatement<'q>
The concrete Statement
implementation for this database.
sourceimpl<'r> HasValueRef<'r> for Mssql
impl<'r> HasValueRef<'r> for Mssql
type Database = Mssql
type ValueRef = MssqlValueRef<'r>
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. Read more
sourceimpl Type<Mssql> for f32
impl Type<Mssql> for f32
sourcepub fn type_info() -> MssqlTypeInfo
pub fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcepub fn compatible(ty: &MssqlTypeInfo) -> bool
pub fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Mssql> for i32
impl Type<Mssql> for i32
sourcepub fn type_info() -> MssqlTypeInfo
pub fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcepub fn compatible(ty: &MssqlTypeInfo) -> bool
pub fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Mssql> for str
impl Type<Mssql> for str
sourcepub fn type_info() -> MssqlTypeInfo
pub fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcepub fn compatible(ty: &MssqlTypeInfo) -> bool
pub fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Mssql> for f64
impl Type<Mssql> for f64
sourcepub fn type_info() -> MssqlTypeInfo
pub fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcepub fn compatible(ty: &MssqlTypeInfo) -> bool
pub fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Mssql> for i8
impl Type<Mssql> for i8
sourcepub fn type_info() -> MssqlTypeInfo
pub fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcepub fn compatible(ty: &MssqlTypeInfo) -> bool
pub fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Mssql> for i64
impl Type<Mssql> for i64
sourcepub fn type_info() -> MssqlTypeInfo
pub fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcepub fn compatible(ty: &MssqlTypeInfo) -> bool
pub fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Mssql> for bool
impl Type<Mssql> for bool
sourcepub fn type_info() -> MssqlTypeInfo
pub fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcepub fn compatible(ty: &MssqlTypeInfo) -> bool
pub fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Mssql> for String
impl Type<Mssql> for String
sourcepub fn type_info() -> MssqlTypeInfo
pub fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcepub fn compatible(ty: &MssqlTypeInfo) -> bool
pub fn compatible(ty: &MssqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
sourceimpl Type<Mssql> for i16
impl Type<Mssql> for i16
sourcepub fn type_info() -> MssqlTypeInfo
pub fn type_info() -> MssqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourcepub fn compatible(ty: &MssqlTypeInfo) -> bool
pub 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more