pub struct Mssql;Expand description
MSSQL database marker for SQLx-core traits.
Trait Implementations§
Source§impl Database for Mssql
impl Database for Mssql
Source§const URL_SCHEMES: &'static [&'static str]
const URL_SCHEMES: &'static [&'static str]
The schemes for database URLs that should match this driver.
Source§type Connection = MssqlConnection
type Connection = MssqlConnection
The concrete
Connection implementation for this database.Source§type TransactionManager = MssqlTransactionManager
type TransactionManager = MssqlTransactionManager
The concrete
TransactionManager implementation for this database.Source§type QueryResult = MssqlQueryResult
type QueryResult = MssqlQueryResult
The concrete
QueryResult implementation for this database.Source§type Column = MssqlColumn
type Column = MssqlColumn
The concrete
Column implementation for this database.Source§type TypeInfo = MssqlTypeInfo
type TypeInfo = MssqlTypeInfo
The concrete
TypeInfo implementation for this database.Source§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§type ValueRef<'r> = MssqlValueRef<'r>
type ValueRef<'r> = 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§type Arguments = MssqlArguments
type Arguments = MssqlArguments
The concrete
Arguments implementation for this database.Source§type ArgumentBuffer = Vec<MssqlArgumentValue>
type ArgumentBuffer = Vec<MssqlArgumentValue>
The concrete type used as a buffer for arguments while encoding.
Source§type Statement = MssqlStatement
type Statement = MssqlStatement
The concrete
Statement implementation for this database.Source§impl DatabaseExt for Mssql
impl DatabaseExt for Mssql
const DATABASE_PATH: &'static str = "sqlx_mssql_odbc::Mssql"
const ROW_PATH: &'static str = "sqlx_mssql_odbc::MssqlRow"
fn describe_blocking( query: &str, database_url: &str, driver_config: &Config, ) -> Result<Describe<Mssql>, Error>
fn db_path() -> Path
fn row_path() -> Path
Source§impl<'q> Encode<'q, Mssql> for &'q str
impl<'q> Encode<'q, Mssql> for &'q str
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, Box<dyn Error + Send + Sync>>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
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> Encode<'q, Mssql> for &'q [u8]
impl<'q> Encode<'q, Mssql> for &'q [u8]
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, Box<dyn Error + Send + Sync>>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
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> Encode<'q, Mssql> for Vec<u8>
impl<'q> Encode<'q, Mssql> for Vec<u8>
Source§fn encode_by_ref(
&self,
buf: &mut Vec<MssqlArgumentValue>,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>
fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, Box<dyn Error + Send + Sync>>
Source§fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
Self: Sized,
fn encode(
self,
buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Send + Sync>>where
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
impl HasStatementCache for Mssql
Source§impl MigrateDatabase for Mssql
impl MigrateDatabase for Mssql
fn create_database(url: &str) -> impl Future<Output = Result<(), Error>> + Send
fn database_exists( url: &str, ) -> impl Future<Output = Result<bool, Error>> + Send
fn drop_database(url: &str) -> impl Future<Output = Result<(), Error>> + Send
fn force_drop_database( _url: &str, ) -> impl Future<Output = Result<(), Error>> + Send
Source§impl Type<Mssql> for str
impl Type<Mssql> for 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 [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 Vec<u8>
impl Type<Mssql> for Vec<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 TypeChecking for Mssql
impl TypeChecking for Mssql
Source§const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Weak
const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Weak
Describes how the database in question typechecks query parameters.
Source§fn param_type_for_id(
info: &<Mssql as Database>::TypeInfo,
preferred_crates: &PreferredCrates,
) -> Result<&'static str, Error>
fn param_type_for_id( info: &<Mssql as Database>::TypeInfo, preferred_crates: &PreferredCrates, ) -> Result<&'static str, Error>
Get the full path of the Rust type that corresponds to the given
TypeInfo, if applicable. Read moreSource§fn return_type_for_id(
info: &<Mssql as Database>::TypeInfo,
preferred_crates: &PreferredCrates,
) -> Result<&'static str, Error>
fn return_type_for_id( info: &<Mssql as Database>::TypeInfo, preferred_crates: &PreferredCrates, ) -> Result<&'static str, Error>
Get the full path of the Rust type that corresponds to the given
TypeInfo, if applicable. Read moreAuto Trait Implementations§
impl Freeze for Mssql
impl RefUnwindSafe for Mssql
impl Send for Mssql
impl Sync for Mssql
impl Unpin for Mssql
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more