/external/rust/crates/rusqlite/src/types/ |
D | chrono.rs | 149 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_naive_date() 153 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_naive_date() 166 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_naive_time() 170 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_naive_time() 186 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_naive_date_time() 190 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_naive_date_time() 197 .query_row("SELECT b FROM foo", NO_PARAMS, |r| r.get(0)) in test_naive_date_time() 214 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_date_time_utc() 219 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_date_time_utc() 224 .query_row("SELECT '2016-02-23 23:56:04.789'", NO_PARAMS, |r| r.get(0)) in test_date_time_utc() [all …]
|
D | mod.rs | 139 .query_row("SELECT b FROM foo", NO_PARAMS, |r| r.get(0)) in test_blob() 153 .query_row("SELECT b FROM foo", NO_PARAMS, |r| r.get(0)) in test_empty_blob() 166 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_str() 180 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_string() 194 db.query_row::<i64, _, _>("SELECT i FROM foo", NO_PARAMS, |r| r.get(0)) in test_value()
|
D | serde_json.rs | 52 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_json_value() 56 .query_row("SELECT b FROM foo", NO_PARAMS, |r| r.get(0)) in test_json_value()
|
D | time.rs | 66 .query_row("SELECT t FROM foo", NO_PARAMS, |r| r.get(0)) in test_offset_date_time() 79 db.query_row("SELECT CURRENT_TIMESTAMP", NO_PARAMS, |r| r.get(0)); in test_sqlite_functions()
|
D | from_sql.rs | 242 .query_row("SELECT ?", &[n], |r| r.get::<_, T>(0)) in test_integral_ranges() 252 db.query_row("SELECT ?", &[n], |r| r.get::<_, T>(0)) in test_integral_ranges()
|
D | url.rs | 39 db.query_row("SELECT v FROM urls WHERE i = ?", params![id], |r| r.get(0)) in get_url()
|
/external/rust/crates/rusqlite/src/ |
D | cache.rs | 198 stmt.query_row(NO_PARAMS, |r| r.get::<_, i64>(0)).unwrap() in test_cache() 208 stmt.query_row(NO_PARAMS, |r| r.get::<_, i64>(0)).unwrap() in test_cache() 229 stmt.query_row(NO_PARAMS, |r| r.get::<_, i64>(0)).unwrap() in test_set_capacity() 242 stmt.query_row(NO_PARAMS, |r| r.get::<_, i64>(0)).unwrap() in test_set_capacity() 253 stmt.query_row(NO_PARAMS, |r| r.get::<_, i64>(0)).unwrap() in test_set_capacity() 270 stmt.query_row(NO_PARAMS, |r| r.get::<_, i64>(0)).unwrap() in test_discard() 339 stmt.query_row(NO_PARAMS, |r| r.get::<_, i64>(0)).unwrap() in test_cache_key() 349 stmt.query_row(NO_PARAMS, |r| r.get::<_, i64>(0)).unwrap() in test_cache_key()
|
D | statement.rs | 373 pub fn query_row<T, P, F>(&mut self, params: P, f: F) -> Result<T> in query_row() method 983 .query_row("SELECT y FROM test WHERE x = 'one'", NO_PARAMS, |row| { in test_unbound_parameters_are_null() 1034 .query_row("SELECT x FROM test WHERE y = 'two'", NO_PARAMS, |row| { in test_unbound_parameters_are_reused() 1117 let y: Result<i64> = stmt.query_row(&[1i32], |r| r.get(0)); in test_query_row() 1130 let y: Result<i64> = stmt.query_row(NO_PARAMS, |r| r.get("y")); in test_query_by_column_name() 1143 let y: Result<i64> = stmt.query_row(NO_PARAMS, |r| r.get("y")); in test_query_by_column_name_ignore_case() 1160 db.query_row( in test_bind_parameters() 1168 db.query_row("SELECT ?1, ?2, ?3", &data, |row| row.get::<_, u8>(0)) in test_bind_parameters() 1170 db.query_row("SELECT ?1, ?2, ?3", data.as_slice(), |row| { in test_bind_parameters() 1174 db.query_row("SELECT ?1, ?2, ?3", data, |row| row.get::<_, u8>(0)) in test_bind_parameters() [all …]
|
D | backup.rs | 329 .query_row("SELECT x FROM foo", NO_PARAMS, |r| r.get(0)) in test_backup() 343 .query_row("SELECT SUM(x) FROM foo", NO_PARAMS, |r| r.get(0)) in test_backup() 367 .query_row("SELECT x FROM foo", NO_PARAMS, |r| r.get(0)) in test_backup_temp() 383 .query_row("SELECT SUM(x) FROM foo", NO_PARAMS, |r| r.get(0)) in test_backup_temp() 412 .query_row("SELECT x FROM foo", NO_PARAMS, |r| r.get(0)) in test_backup_attached() 432 .query_row("SELECT SUM(x) FROM foo", NO_PARAMS, |r| r.get(0)) in test_backup_attached()
|
D | trace.rs | 145 let _ = db.query_row("SELECT ?", &[1i32], |_| Ok(())); in test_trace() 146 let _ = db.query_row("SELECT ?", &["hello"], |_| Ok(())); in test_trace() 150 let _ = db.query_row("SELECT ?", &[2i32], |_| Ok(())); in test_trace() 151 let _ = db.query_row("SELECT ?", &["goodbye"], |_| Ok(())); in test_trace()
|
D | lib.rs | 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() [all …]
|
D | functions.rs | 767 let result: Result<f64> = db.query_row("SELECT half(6)", NO_PARAMS, |r| r.get(0)); in test_function_half() 782 let result: Result<f64> = db.query_row("SELECT half(6)", NO_PARAMS, |r| r.get(0)); in test_remove_function() 786 let result: Result<f64> = db.query_row("SELECT half(6)", NO_PARAMS, |r| r.get(0)); in test_remove_function() 834 db.query_row("SELECT regexp('l.s[aeiouy]', 'lisa')", NO_PARAMS, |r| { in test_function_regexp_with_auxilliary() 840 let result: Result<i64> = db.query_row( in test_function_regexp_with_auxilliary() 874 let result: String = db.query_row(query, NO_PARAMS, |r| r.get(0)).unwrap(); in test_varargs_function() 894 .query_row( in test_get_aux_type_checking() 950 let result: Option<i64> = db.query_row(no_result, NO_PARAMS, |r| r.get(0)).unwrap(); in test_sum() 954 let result: i64 = db.query_row(single_sum, NO_PARAMS, |r| r.get(0)).unwrap(); in test_sum() 960 .query_row(dual_sum, NO_PARAMS, |r| Ok((r.get(0)?, r.get(1)?))) in test_sum() [all …]
|
D | busy.rs | 97 let r: Result<()> = db2.query_row("PRAGMA schema_version", NO_PARAMS, |_| unreachable!()); in test_default_busy() 129 .query_row("PRAGMA schema_version", NO_PARAMS, |row| { in test_busy_timeout() 168 .query_row("PRAGMA schema_version", NO_PARAMS, |row| { in test_busy_handler()
|
D | row.rs | 429 .query_row( in test_try_from_row_for_tuple_1() 436 let fail = conn.query_row( in test_try_from_row_for_tuple_1() 461 .query_row( in test_try_from_row_for_tuple_2() 468 let fail = conn.query_row( in test_try_from_row_for_tuple_2() 544 .query_row( in test_try_from_row_for_tuple_16()
|
D | transaction.rs | 495 tx.query_row::<i32, _, _>("SELECT SUM(x) FROM foo", NO_PARAMS, |r| r.get(0)) in test_drop() 534 db.query_row::<i32, _, _>("SELECT SUM(x) FROM foo", NO_PARAMS, |r| r.get(0)) in test_unchecked_nesting() 562 tx.query_row::<i32, _, _>("SELECT SUM(x) FROM foo", NO_PARAMS, |r| r.get(0)) in test_explicit_rollback_commit() 669 .query_row::<i32, _, _>("SELECT SUM(x) FROM foo", NO_PARAMS, |r| r.get(0)) in assert_current_sum()
|
D | pragma.rs | 179 self.query_row(&query, NO_PARAMS, f) in pragma_query_value() 282 self.query_row(&sql, NO_PARAMS, f) in pragma_update_and_check() 335 .query_row( in pragma_func_query_value()
|
D | unlock_notify.rs | 125 let the_answer: Result<i64> = db1.query_row("SELECT x FROM foo", NO_PARAMS, |r| r.get(0)); in test_unlock_notify()
|
D | session.rs | 837 .query_row("SELECT 1 FROM foo WHERE t = ?", &["bar"], |row| { in test_changeset_apply() 876 .query_row("SELECT 1 FROM foo WHERE t = ?", &["bar"], |row| { in test_changeset_apply_strm()
|
/external/chromium-trace/catapult/devil/devil/android/ |
D | settings.py | 155 query_row = self._device.RunShellCommand([ 163 parsed_key, parsed_value = _ParseContentRow(query_row)
|
/external/rust/crates/rusqlite/tests/ |
D | vtab.rs | 100 .query_row(&[] as &[&dyn ToSql], |row| row.get::<_, i32>(0)) in test_dummy_module()
|
/external/rust/crates/rusqlite/ |
D | Changelog.md | 112 * BREAKING CHANGE: The closure passed to `query_row`, `query_row_and_then`, `query_row_safe`, 121 * Added `query_row` convenience function to `Statement`. 231 `query_row` and `query_map` but allow functions that can fail by returning `Result`s. 248 * [breaking-change] Modify `query_row` to return a `Result` instead of unwrapping. 249 * Deprecate `query_row_safe` (use `query_row` instead). 309 * Add `query_row_safe`, a `SqliteResult`-returning variant of `query_row`.
|