Struct cdbc_mysql::MySqlConnection
source · [−]pub struct MySqlConnection { /* private fields */ }
Expand description
A connection to a MySQL database.
Trait Implementations
type Options = MySqlConnectOptions
The number of statements currently cached in the connection.
Removes all statements from the cache, closing them on the server if needed. Read more
Begin a new transaction or establish a savepoint within the active transaction. Read more
Execute the function inside a transaction. Read more
Establish a new database connection with the provided options.
fn fetch_many<'q, E: 'q>(
&mut self,
query: E
) -> ChanStream<Either<MySqlQueryResult, MySqlRow>> where
E: Execute<'q, Self::Database>,
fn fetch_many<'q, E: 'q>(
&mut self,
query: E
) -> ChanStream<Either<MySqlQueryResult, MySqlRow>> where
E: Execute<'q, Self::Database>,
Execute multiple queries and return the generated results as a stream from each query, in a stream. Read more
Execute the query and returns at most one row.
fn prepare_with<'q>(
&mut self,
sql: &'q str,
_parameters: &'q [MySqlTypeInfo]
) -> Result<MySqlStatement<'q>, Error>
fn prepare_with<'q>(
&mut self,
sql: &'q str,
_parameters: &'q [MySqlTypeInfo]
) -> Result<MySqlStatement<'q>, Error>
Prepare the SQL query, with parameter type information, to inspect the type information about its parameters and results. Read more
Execute the query and return the total number of rows affected.
fn execute_many<'q, E>(
&mut self,
query: E
) -> ChanStream<<Self::Database as Database>::QueryResult> where
E: 'q + Execute<'q, Self::Database>,
fn execute_many<'q, E>(
&mut self,
query: E
) -> ChanStream<<Self::Database as Database>::QueryResult> where
E: 'q + Execute<'q, Self::Database>,
Execute multiple queries and return the rows affected from each query, in a stream.
Execute the query and return the generated results as a stream.
Execute the query and return all the generated results, collected into a Vec
.
Execute the query and returns exactly one row.
fn fetch_many<'q, E: 'q>(
&mut self,
query: E
) -> ChanStream<Either<<Self::Database as Database>::QueryResult, <Self::Database as Database>::Row>> where
E: Execute<'q, Self::Database>,
fn fetch_many<'q, E: 'q>(
&mut self,
query: E
) -> ChanStream<Either<<Self::Database as Database>::QueryResult, <Self::Database as Database>::Row>> where
E: Execute<'q, Self::Database>,
Execute multiple queries and return the generated results as a stream from each query, in a stream. Read more
Execute the query and returns at most one row.
Prepare the SQL query, with parameter type information, to inspect the type information about its parameters and results. Read more
Execute the query and return the total number of rows affected.
fn execute_many<'q, E>(
&mut self,
query: E
) -> ChanStream<<Self::Database as Database>::QueryResult> where
E: 'q + Execute<'q, Self::Database>,
fn execute_many<'q, E>(
&mut self,
query: E
) -> ChanStream<<Self::Database as Database>::QueryResult> where
E: 'q + Execute<'q, Self::Database>,
Execute multiple queries and return the rows affected from each query, in a stream.
Execute the query and return the generated results as a stream.
Execute the query and return all the generated results, collected into a Vec
.
Execute the query and returns exactly one row.
Performs the conversion.