Trait mysql::prelude::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

Implementors