[−][src]Struct sqlx::MssqlConnection
This is supported on crate feature
mssql
only.Trait Implementations
impl<'c> Acquire<'c> for &'c mut MssqlConnection
[src]
type Database = Mssql
type Connection = &'c mut <Mssql as Database>::Connection
pub fn acquire(
self
) -> Pin<Box<dyn Future<Output = Result<<&'c mut MssqlConnection as Acquire<'c>>::Connection, Error>> + 'c + Send, Global>>
[src]
self
) -> Pin<Box<dyn Future<Output = Result<<&'c mut MssqlConnection as Acquire<'c>>::Connection, Error>> + 'c + Send, Global>>
pub fn begin(
self
) -> Pin<Box<dyn Future<Output = Result<Transaction<'c, Mssql>, Error>> + 'c + Send, Global>>
[src]
self
) -> Pin<Box<dyn Future<Output = Result<Transaction<'c, Mssql>, Error>> + 'c + Send, Global>>
impl Connection for MssqlConnection
[src]
type Database = Mssql
type Options = MssqlConnectOptions
pub fn close(
self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static + Send, Global>>
[src]
self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static + Send, Global>>
pub fn ping(
&mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
[src]
&mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>>
pub fn begin(
&mut self
) -> Pin<Box<dyn Future<Output = Result<Transaction<'_, <MssqlConnection as Connection>::Database>, Error>> + Send, Global>> where
MssqlConnection: Sized,
[src]
&mut self
) -> Pin<Box<dyn Future<Output = Result<Transaction<'_, <MssqlConnection as Connection>::Database>, Error>> + Send, Global>> where
MssqlConnection: Sized,
fn transaction<'c, 'f, T, E, F, Fut>(
&'c mut self,
f: F
) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'f + Send, Global>> where
'c: 'f,
E: From<Error> + Send,
F: FnOnce(&mut <Self::Database as Database>::Connection) -> Fut + Send + 'f,
Fut: Future<Output = Result<T, E>> + Send,
T: Send,
[src]
&'c mut self,
f: F
) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'f + Send, Global>> where
'c: 'f,
E: From<Error> + Send,
F: FnOnce(&mut <Self::Database as Database>::Connection) -> Fut + Send + 'f,
Fut: Future<Output = Result<T, E>> + Send,
T: Send,
fn cached_statements_size(&self) -> usize where
Self::Database: HasStatementCache,
[src]
Self::Database: HasStatementCache,
fn clear_cached_statements(
&mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>> where
Self::Database: HasStatementCache,
[src]
&mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send, Global>> where
Self::Database: HasStatementCache,
fn connect(
url: &str
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + 'static + Send, Global>>
[src]
url: &str
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + 'static + Send, Global>>
fn connect_with(
options: &Self::Options
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send, Global>>
[src]
options: &Self::Options
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send, Global>>
impl Debug for MssqlConnection
[src]
impl<'c> Executor<'c> for &'c mut MssqlConnection
[src]
type Database = Mssql
pub fn fetch_many<'e, 'q, E>(
self,
query: E
) -> Pin<Box<dyn Stream<Item = Result<Either<MssqlDone, MssqlRow>, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, <&'c mut MssqlConnection as Executor<'c>>::Database>,
[src]
self,
query: E
) -> Pin<Box<dyn Stream<Item = Result<Either<MssqlDone, MssqlRow>, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, <&'c mut MssqlConnection as Executor<'c>>::Database>,
pub fn fetch_optional<'e, 'q, E>(
self,
query: E
) -> Pin<Box<dyn Future<Output = Result<Option<MssqlRow>, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, <&'c mut MssqlConnection as Executor<'c>>::Database>,
[src]
self,
query: E
) -> Pin<Box<dyn Future<Output = Result<Option<MssqlRow>, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, <&'c mut MssqlConnection as Executor<'c>>::Database>,
pub fn prepare_with<'e, 'q>(
self,
sql: &'q str,
_parameters: &[MssqlTypeInfo]
) -> Pin<Box<dyn Future<Output = Result<MssqlStatement<'q>, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
[src]
self,
sql: &'q str,
_parameters: &[MssqlTypeInfo]
) -> Pin<Box<dyn Future<Output = Result<MssqlStatement<'q>, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
pub fn describe<'e, 'q>(
self,
sql: &'q str
) -> Pin<Box<dyn Future<Output = Result<Describe<<&'c mut MssqlConnection as Executor<'c>>::Database>, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
[src]
self,
sql: &'q str
) -> Pin<Box<dyn Future<Output = Result<Describe<<&'c mut MssqlConnection as Executor<'c>>::Database>, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
fn execute<'e, 'q, E>(
self,
query: E
) -> Pin<Box<dyn Future<Output = Result<<Self::Database as Database>::Done, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, Self::Database>,
[src]
self,
query: E
) -> Pin<Box<dyn Future<Output = Result<<Self::Database as Database>::Done, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, Self::Database>,
fn execute_many<'e, 'q, E>(
self,
query: E
) -> Pin<Box<dyn Stream<Item = Result<<Self::Database as Database>::Done, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, Self::Database>,
[src]
self,
query: E
) -> Pin<Box<dyn Stream<Item = Result<<Self::Database as Database>::Done, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, Self::Database>,
fn fetch<'e, 'q, E>(
self,
query: E
) -> Pin<Box<dyn Stream<Item = Result<<Self::Database as Database>::Row, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, Self::Database>,
[src]
self,
query: E
) -> Pin<Box<dyn Stream<Item = Result<<Self::Database as Database>::Row, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, Self::Database>,
fn fetch_all<'e, 'q, E>(
self,
query: E
) -> Pin<Box<dyn Future<Output = Result<Vec<<Self::Database as Database>::Row>, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, Self::Database>,
[src]
self,
query: E
) -> Pin<Box<dyn Future<Output = Result<Vec<<Self::Database as Database>::Row>, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, Self::Database>,
fn fetch_one<'e, 'q, E>(
self,
query: E
) -> Pin<Box<dyn Future<Output = Result<<Self::Database as Database>::Row, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, Self::Database>,
[src]
self,
query: E
) -> Pin<Box<dyn Future<Output = Result<<Self::Database as Database>::Row, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
E: 'q + Execute<'q, Self::Database>,
fn prepare<'e, 'q>(
self,
query: &'q str
) -> Pin<Box<dyn Future<Output = Result<<Self::Database as HasStatement<'q>>::Statement, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
[src]
self,
query: &'q str
) -> Pin<Box<dyn Future<Output = Result<<Self::Database as HasStatement<'q>>::Statement, Error>> + 'e + Send, Global>> where
'q: 'e,
'c: 'e,
Auto Trait Implementations
impl RefUnwindSafe for MssqlConnection
impl Send for MssqlConnection
impl Sync for MssqlConnection
impl Unpin for MssqlConnection
impl UnwindSafe for MssqlConnection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,