fn execute_sql(&self, sql: &str, params: &[Value]) -> Result<usize, DbError> {
        debug!("SQL: \n{}", sql);
        debug!("param: {:?}", params);
        let to_sql_types = self.from_rust_type_tosql(params);
        let conn = self.get_connection();
        let result = try!(conn.execute(sql, &to_sql_types));
        Ok(result as usize)
    }
/// generic execute sql which returns not much information,
/// returns only the number of affected records or errors
/// can be used with DDL operations (CREATE, DELETE, ALTER, DROP)
generic execute sql which returns not much information,
returns only the number of affected records or errors
can be used with DDL operations (CREATE, DELETE, ALTER, DROP)
generic execute sql which returns not much information returns only the number of affected records or errors can be used with DDL operations ( CREATE DELETE ALTER DROP )
fn execute_sql(&self, sql: &str, params: &[Value]) -> Result<usize, DbError> {
        debug!("SQL: \n{}", sql);
        debug!("param: {:?}", params);
        let to_sql_types = self.from_rust_type_tosql(params);
        let conn = self.get_connection();
        let result = try!(conn.execute(sql, &to_sql_types));
        Ok(result as usize)
    }
fn execute_sql ( & self , sql : & str , params : & [ Value ] ) -> Result < usize , DbError > { debug ! ( " \n " sql ) ; debug ! ( " " params ) ; let to_sql_types = self . from_rust_type_tosql ( params ) ; let conn = self . get_connection ( ) ; let result = try ! ( conn execute ( sql to_sql_types ) ) ; Ok ( result as usize ) }
generic execute sql which returns not much information,
returns only the number of affected records or errors
can be used with DDL operations (CREATE, DELETE, ALTER, DROP)
generic execute sql which returns not much information returns only the number of affected records or errors can be used with DDL operations ( CREATE DELETE ALTER DROP )
&self
sql
&str
params
&[Value]
&self
sql
&str
params
&[Value]