fn insert(&self, query: &Insert) -> Result<Dao, DbError> {
        let sql_frag = self.build_insert(query, &BuildMode::Standard);
        match self.execute_sql_with_one_return(&sql_frag.sql, &sql_frag.params) {
            Ok(Some(result)) => Ok(result),
            Ok(None) => Err(DbError::new("No result from insert")),
            Err(e) => Err(e),
        }
    }
/// insert
/// insert an object, returns the inserted Dao value
/// including the value generated via the defaults
insert
insert an object, returns the inserted Dao value
including the value generated via the defaults
insert insert an object returns the inserted Dao value including the value generated via the defaults
fn insert(&self, query: &Insert) -> Result<Dao, DbError> {
        let sql_frag = self.build_insert(query, &BuildMode::Standard);
        match self.execute_sql_with_one_return(&sql_frag.sql, &sql_frag.params) {
            Ok(Some(result)) => Ok(result),
            Ok(None) => Err(DbError::new("No result from insert")),
            Err(e) => Err(e),
        }
    }
fn insert ( & self , query : & Insert ) -> Result < Dao , DbError > { let sql_frag = self . build_insert ( query , & BuildMode :: Standard ) ; match self . execute_sql_with_one_return ( & sql_frag . sql , & sql_frag . params ) { Ok ( Some ( result ) ) => Ok ( result ) , Ok ( None ) => Err ( DbError :: new ( " " ) ) , Err ( e ) => Err ( e ) , } }
insert
insert an object, returns the inserted Dao value
including the value generated via the defaults
insert insert an object returns the inserted Dao value including the value generated via the defaults
&self
query
&Insert
&self
query
&Insert