Skip to main content

Mssql

Struct Mssql 

Source
pub struct Mssql;
Expand description

MSSQL database marker for SQLx-core traits.

Trait Implementations§

Source§

impl Database for Mssql

Source§

const NAME: &'static str = "MSSQL"

The display name for this database driver.
Source§

const URL_SCHEMES: &'static [&'static str]

The schemes for database URLs that should match this driver.
Source§

type Connection = MssqlConnection

The concrete Connection implementation for this database.
Source§

type TransactionManager = MssqlTransactionManager

The concrete TransactionManager implementation for this database.
Source§

type Row = MssqlRow

The concrete Row implementation for this database.
Source§

type QueryResult = MssqlQueryResult

The concrete QueryResult implementation for this database.
Source§

type Column = MssqlColumn

The concrete Column implementation for this database.
Source§

type TypeInfo = MssqlTypeInfo

The concrete TypeInfo implementation for this database.
Source§

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>

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

The concrete Arguments implementation for this database.
Source§

type ArgumentBuffer = Vec<MssqlArgumentValue>

The concrete type used as a buffer for arguments while encoding.
Source§

type Statement = MssqlStatement

The concrete Statement implementation for this database.
Source§

impl DatabaseExt for Mssql

Source§

const DATABASE_PATH: &'static str = "sqlx_mssql_odbc::Mssql"

Source§

const ROW_PATH: &'static str = "sqlx_mssql_odbc::MssqlRow"

Source§

fn describe_blocking( query: &str, database_url: &str, driver_config: &Config, ) -> Result<Describe<Mssql>, Error>

Source§

fn db_path() -> Path

Source§

fn row_path() -> Path

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<'r> Decode<'r, Mssql> for &'r str

Source§

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

Decode a new value of this type using a raw value from the database.
Source§

impl<'r> Decode<'r, Mssql> for Vec<u8>

Source§

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

Decode a new value of this type using a raw value from the database.
Source§

impl<'r> Decode<'r, Mssql> for &'r [u8]

Source§

fn decode( value: MssqlValueRef<'r>, ) -> Result<&'r [u8], Box<dyn Error + Sync + Send>>

Decode a new value of this type using a raw value from the database.
Source§

impl<'q> Encode<'q, Mssql> for &'q str

Source§

fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>

Writes the value of self into buf without moving self. Read more
Source§

fn encode( self, buf: &mut <DB as Database>::ArgumentBuffer, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
where 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> Encode<'q, Mssql> for &'q [u8]

Source§

fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>

Writes the value of self into buf without moving self. Read more
Source§

fn encode( self, buf: &mut <DB as Database>::ArgumentBuffer, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
where 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> Encode<'q, Mssql> for Vec<u8>

Source§

fn encode_by_ref( &self, buf: &mut Vec<MssqlArgumentValue>, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>

Writes the value of self into buf without moving self. Read more
Source§

fn encode( self, buf: &mut <DB as Database>::ArgumentBuffer, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
where 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 HasStatementCache for Mssql

Source§

impl MigrateDatabase for Mssql

Source§

fn create_database(url: &str) -> impl Future<Output = Result<(), Error>> + Send

Source§

fn database_exists( url: &str, ) -> impl Future<Output = Result<bool, Error>> + Send

Source§

fn drop_database(url: &str) -> impl Future<Output = Result<(), Error>> + Send

Source§

fn force_drop_database( _url: &str, ) -> impl Future<Output = Result<(), Error>> + Send

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

impl Type<Mssql> for Vec<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
Source§

impl TypeChecking for Mssql

Source§

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>

Get the full path of the Rust type that corresponds to the given TypeInfo, if applicable. Read more
Source§

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 more
Source§

fn get_feature_gate( _info: &<Mssql as Database>::TypeInfo, ) -> Option<&'static str>

Get the name of the Cargo feature gate that must be enabled to process the given TypeInfo, if applicable.
Source§

fn fmt_value_debug(value: &<Mssql as Database>::Value) -> FmtValue<'_, Mssql>

If value is a well-known type, decode and format it using Debug. Read more

Auto 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

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

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more