[−][src]Struct sqlx_core::mysql::MySqlConnection
An asynchronous connection to a [MySql] database.
The connection string expected by Connection::open should be a MySQL connection string, as documented at https://dev.mysql.com/doc/refman/8.0/en/connecting-using-uri-or-key-value-pairs.html#connecting-using-uri
Trait Implementations
impl Connection for MySqlConnection
[src]
fn open<T>(url: T) -> BoxFuture<'static, Result<Self>> where
T: TryInto<Url, Error = Error>,
Self: Sized,
[src]
T: TryInto<Url, Error = Error>,
Self: Sized,
fn close(self) -> BoxFuture<'static, Result<()>>
[src]
fn ping(&mut self) -> BoxFuture<Result<()>>
[src]
impl Executor for MySqlConnection
[src]
type Database = MySql
fn send<'e, 'q: 'e>(&'e mut self, query: &'q str) -> BoxFuture<'e, Result<()>>
[src]
fn execute<'e, 'q: 'e>(
&'e mut self,
query: &'q str,
args: MySqlArguments
) -> BoxFuture<'e, Result<u64>>
[src]
&'e mut self,
query: &'q str,
args: MySqlArguments
) -> BoxFuture<'e, Result<u64>>
fn fetch<'e, 'q: 'e>(
&'e mut self,
query: &'q str,
args: MySqlArguments
) -> BoxStream<'e, Result<MySqlRow>>
[src]
&'e mut self,
query: &'q str,
args: MySqlArguments
) -> BoxStream<'e, Result<MySqlRow>>
fn describe<'e, 'q: 'e>(
&'e mut self,
query: &'q str
) -> BoxFuture<'e, Result<Describe<Self::Database>>>
[src]
&'e mut self,
query: &'q str
) -> BoxFuture<'e, Result<Describe<Self::Database>>>
fn fetch_optional<'e, 'q: 'e>(
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxFuture<'e, Result<Option<<Self::Database as Database>::Row>>>
[src]
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxFuture<'e, Result<Option<<Self::Database as Database>::Row>>>
fn fetch_one<'e, 'q: 'e>(
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxFuture<'e, Result<<Self::Database as Database>::Row>>
[src]
&'e mut self,
query: &'q str,
args: <Self::Database as Database>::Arguments
) -> BoxFuture<'e, Result<<Self::Database as Database>::Row>>
Auto Trait Implementations
impl RefUnwindSafe for MySqlConnection
impl Send for MySqlConnection
impl Sync for MySqlConnection
impl Unpin for MySqlConnection
impl UnwindSafe for MySqlConnection
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<'_, T, DB> HasSqlType<&'_ T> for DB where
DB: HasSqlType<T>,
T: ?Sized,
[src]
DB: HasSqlType<T>,
T: ?Sized,
fn metadata() -> <DB as HasTypeMetadata>::TypeMetadata
[src]
impl<T, DB> HasSqlType<Option<T>> for DB where
DB: HasSqlType<T>,
[src]
DB: HasSqlType<T>,
fn metadata() -> <DB as HasTypeMetadata>::TypeMetadata
[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.
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.
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>,