• Home
  • Raw
  • Download

Lines Matching refs:query_row

561     pub fn query_row<T, P, F>(&self, sql: &str, params: P, f: F) -> Result<T>  in query_row()  method
569 stmt.query_row(params, f) in query_row()
981 tx1.query_row("SELECT x FROM foo LIMIT 1", NO_PARAMS, |_| Ok(())) in test_concurrent_transactions_busy_commit()
983 tx2.query_row("SELECT x FROM foo LIMIT 1", NO_PARAMS, |_| Ok(())) in test_concurrent_transactions_busy_commit()
1017 let the_answer: Result<i64> = db.query_row("SELECT x FROM foo", NO_PARAMS, |r| r.get(0)); in test_persistence()
1074 let the_answer: Result<i64> = db.query_row("SELECT x FROM foo", NO_PARAMS, |r| r.get(0)); in test_invalid_unicode_file_names()
1167 db.query_row::<i32, _, _>("SELECT SUM(x) FROM foo", NO_PARAMS, |r| r.get(0)) in test_execute()
1304 db.query_row::<i64, _, _>("SELECT SUM(x) FROM foo", NO_PARAMS, |r| r.get(0)) in test_query_row()
1309 db.query_row("SELECT x FROM foo WHERE x > 5", NO_PARAMS, |r| r.get(0)); in test_query_row()
1315 let bad_query_result = db.query_row("NOT A PROPER QUERY; test123", NO_PARAMS, |_| Ok(())); in test_query_row()
1324 let result: Result<i64> = db.query_row("SELECT 1 WHERE 0 <> 0", NO_PARAMS, |r| r.get(0)); in test_optional()
1331 let result: Result<i64> = db.query_row("SELECT 1 WHERE 0 == 0", NO_PARAMS, |r| r.get(0)); in test_optional()
1339 db.query_row("NOT A PROPER QUERY", NO_PARAMS, |r| r.get(0)); in test_optional()
1350 db.query_row::<String, _, _>("PRAGMA journal_mode", NO_PARAMS, |r| r.get(0)) in test_pragma_query_row()
1355 db.query_row::<String, _, _>("PRAGMA journal_mode=off", NO_PARAMS, |r| r.get(0)) in test_pragma_query_row()
1762 db.query_row("SELECT * FROM foo", params![], |r| { in test_dynamic()
1774 db.query_row("SELECT x FROM foo", params![], |r| { in test_dyn_box()
1784 db.query_row( in test_params()