Lines Matching refs:stmt
43 fn bind_datas(datas: &DbMap, stmt: &Statement, index: &mut i32) -> Result<()> {
45 stmt.bind_data(*index, value)?;
51 fn bind_where_datas(datas: &DbMap, stmt: &Statement, index: &mut i32) -> Result<()> {
54 stmt.bind_data(*index, value)?;
57 stmt.bind_data(*index, value)?;
63 fn bind_where_with_specific_condifion(datas: &[Value], stmt: &Statement, index: &mut i32) -> Result<()> {
65 stmt.bind_data(*index, value)?;
207 let stmt = Statement::prepare(sql.as_str(), self.db)?;
208 let ret = stmt.step()?;
302 let stmt = Statement::prepare(&sql, self.db)?;
304 bind_datas(datas, &stmt, &mut index)?;
305 stmt.step()?;
328 let stmt = Statement::prepare(&sql, self.db)?;
330 bind_where_datas(condition, &stmt, &mut index)?;
332 bind_datas(datas, &stmt, &mut index)?;
334 stmt.step()?;
351 let stmt = Statement::prepare(&sql, self.db)?;
353 bind_where_with_specific_condifion(condition_value, &stmt, &mut index)?;
354 stmt.step()?;
379 let stmt = Statement::prepare(&sql, self.db)?;
381 bind_datas(datas, &stmt, &mut index)?;
382 bind_where_datas(condition, &stmt, &mut index)?;
383 stmt.step()?;
415 let stmt = Statement::prepare(&sql, self.db)?;
417 bind_where_datas(condition, &stmt, &mut index)?;
419 while stmt.step()? == SQLITE_ROW {
421 let n = stmt.data_count();
423 let column_name = stmt.query_column_name(i)?;
425 match stmt.query_column_auto_type(i)? {
452 let stmt = Statement::prepare(&sql, self.db)?;
454 bind_where_datas(condition, &stmt, &mut index)?;
455 stmt.step()?;
456 let count = stmt.query_column_int(0);