fn build_query(&self, query: &Query, build_mode: &BuildMode) -> SqlFrag {
        match *query {
            Query::Select(ref select) => self.build_select(select, build_mode),
            Query::Insert(ref insert) => self.build_insert(insert, build_mode),
            Query::Update(ref update) => self.build_update(update, build_mode),
            Query::Delete(ref delete) => self.build_delete(delete, build_mode),
        }
    }
/// build a query, return the sql string and the parameters.
/// use by select to build the select query
/// build all types of query
/// TODO: need to supply the number of parameters where to start the numbering of the number parameters
build a query, return the sql string and the parameters.
use by select to build the select query
build all types of query
TODO: need to supply the number of parameters where to start the numbering of the number parameters
build a query return the sql string and the parameters . use by select to build the select query build all types of query TODO : need to supply the number of parameters where to start the numbering of the number parameters
fn build_query(&self, query: &Query, build_mode: &BuildMode) -> SqlFrag {
        match *query {
            Query::Select(ref select) => self.build_select(select, build_mode),
            Query::Insert(ref insert) => self.build_insert(insert, build_mode),
            Query::Update(ref update) => self.build_update(update, build_mode),
            Query::Delete(ref delete) => self.build_delete(delete, build_mode),
        }
    }
fn build_query ( & self , query : & Query , build_mode : & BuildMode ) -> SqlFrag { match * query { Query :: Select ( ref select ) => self . build_select ( select , build_mode ) , Query :: Insert ( ref insert ) => self . build_insert ( insert , build_mode ) , Query :: Update ( ref update ) => self . build_update ( update , build_mode ) , Query :: Delete ( ref delete ) => self . build_delete ( delete , build_mode ) , } }
build a query, return the sql string and the parameters.
build a query return the sql string and the parameters .
&self
query
&Query
build_mode
&BuildMode
&self
query
&Query
build_mode
&BuildMode