Trait mysql::conn::GenericConnection
[−]
[src]
pub trait GenericConnection { fn query<T: AsRef<str>>(&mut self, query: T) -> MyResult<QueryResult>; fn first<T: AsRef<str>>(&mut self, query: T) -> MyResult<Option<Row>>; fn prepare<T: AsRef<str>>(&mut self, query: T) -> MyResult<Stmt>; fn prep_exec<A, T>(&mut self, query: A, params: T) -> MyResult<QueryResult>
where
A: AsRef<str>,
T: Into<Params>; fn first_exec<Q, P>(&mut self, query: Q, params: P) -> MyResult<Option<Row>>
where
Q: AsRef<str>,
P: Into<Params>; }
A trait allowing abstraction over connections and transactions
Required Methods
fn query<T: AsRef<str>>(&mut self, query: T) -> MyResult<QueryResult>
See
Conn#query
.
fn first<T: AsRef<str>>(&mut self, query: T) -> MyResult<Option<Row>>
See
Conn#first
.
fn prepare<T: AsRef<str>>(&mut self, query: T) -> MyResult<Stmt>
See
Conn#prepare
.
fn prep_exec<A, T>(&mut self, query: A, params: T) -> MyResult<QueryResult> where
A: AsRef<str>,
T: Into<Params>,
A: AsRef<str>,
T: Into<Params>,
See
Conn#prep_exec
.
fn first_exec<Q, P>(&mut self, query: Q, params: P) -> MyResult<Option<Row>> where
Q: AsRef<str>,
P: Into<Params>,
Q: AsRef<str>,
P: Into<Params>,
See
Conn#first_exec
.
Implementors
impl GenericConnection for PooledConn
impl<'a> GenericConnection for Transaction<'a>
impl GenericConnection for Conn