Home
last modified time | relevance | path

Searched refs:ToSql (Results 1 – 17 of 17) sorted by relevance

/external/rust/crates/rusqlite/src/types/
Dto_sql.rs74 impl ToSql for ToSqlOutput<'_> {
89 pub trait ToSql { interface
94 impl<T: ToSql + ToOwned + ?Sized> ToSql for Cow<'_, T> {
100 impl<T: ToSql + ?Sized> ToSql for Box<T> {
106 impl<T: ToSql + ?Sized> ToSql for std::rc::Rc<T> {
112 impl<T: ToSql + ?Sized> ToSql for std::sync::Arc<T> {
132 impl ToSql for $t { impl
158 impl<T: ?Sized> ToSql for &'_ T impl
160 T: ToSql,
167 impl ToSql for String {
[all …]
Dserde_json.rs5 use crate::types::{FromSql, FromSqlError, FromSqlResult, ToSql, ToSqlOutput, ValueRef};
9 impl ToSql for Value {
29 use crate::types::ToSql;
47 &[&data as &dyn ToSql, &json.as_bytes()], in test_json_value()
Dchrono.rs7 use crate::types::{FromSql, FromSqlError, FromSqlResult, ToSql, ToSqlOutput, ValueRef};
11 impl ToSql for NaiveDate {
31 impl ToSql for NaiveTime {
57 impl ToSql for NaiveDateTime {
86 impl<Tz: TimeZone> ToSql for DateTime<Tz> {
Durl.rs2 use crate::types::{FromSql, FromSqlError, FromSqlResult, ToSql, ToSqlOutput, ValueRef};
7 impl ToSql for Url {
Dtime.rs2 use crate::types::{FromSql, FromSqlError, FromSqlResult, ToSql, ToSqlOutput, ValueRef};
10 impl ToSql for OffsetDateTime {
Dmod.rs54 pub use self::to_sql::{ToSql, ToSqlOutput};
/external/rust/crates/rusqlite/src/
Drow.rs414 use crate::{Connection, ToSql}; in test_try_from_row_for_tuple_1()
420 std::iter::empty::<&dyn ToSql>(), in test_try_from_row_for_tuple_1()
425 std::iter::empty::<&dyn ToSql>(), in test_try_from_row_for_tuple_1()
431 std::iter::empty::<&dyn ToSql>(), in test_try_from_row_for_tuple_1()
438 std::iter::empty::<&dyn ToSql>(), in test_try_from_row_for_tuple_1()
446 use crate::{Connection, ToSql}; in test_try_from_row_for_tuple_2()
452 std::iter::empty::<&dyn ToSql>(), in test_try_from_row_for_tuple_2()
457 std::iter::empty::<&dyn ToSql>(), in test_try_from_row_for_tuple_2()
463 std::iter::empty::<&dyn ToSql>(), in test_try_from_row_for_tuple_2()
470 std::iter::empty::<&dyn ToSql>(), in test_try_from_row_for_tuple_2()
[all …]
Dstatement.rs13 use crate::types::{ToSql, ToSqlOutput};
51 P::Item: ToSql, in execute() argument
92 pub fn execute_named(&mut self, params: &[(&str, &dyn ToSql)]) -> Result<usize> { in execute_named()
113 P::Item: ToSql, in insert() argument
152 P::Item: ToSql, in query() argument
197 pub fn query_named(&mut self, params: &[(&str, &dyn ToSql)]) -> Result<Rows<'_>> { in query_named()
231 P::Item: ToSql, in query_map() argument
269 params: &[(&str, &dyn ToSql)], in query_map_named() argument
289 P::Item: ToSql, in query_and_then() argument
337 params: &[(&str, &dyn ToSql)], in query_and_then_named() argument
[all …]
Dfunctions.rs69 use crate::types::{FromSql, FromSqlError, ToSql, ValueRef};
234 T: ToSql,
259 T: ToSql,
346 T: ToSql, in create_scalar_function() argument
369 T: ToSql, in create_aggregate_function() argument
392 T: ToSql, in create_window_function() argument
423 T: ToSql, in create_scalar_function() argument
431 T: ToSql, in create_scalar_function() argument
449 let t = t.as_ref().map(|t| ToSql::to_sql(t)); in create_scalar_function()
486 T: ToSql, in create_aggregate_function() argument
[all …]
Dpragma.rs7 use crate::types::{ToSql, ToSqlOutput, ValueRef};
61 pub fn push_value(&mut self, value: &dyn ToSql) -> Result<()> { in push_value()
219 pragma_value: &dyn ToSql, in pragma() argument
250 pragma_value: &dyn ToSql, in pragma_update() argument
269 pragma_value: &dyn ToSql, in pragma_update_and_check() argument
Dlib.rs83 pub use crate::types::ToSql;
131 pub const NO_PARAMS: &[&dyn ToSql] = &[];
160 &[$(&$param as &dyn $crate::ToSql),+] as &[&dyn $crate::ToSql]
199 &[$(($param_name, &$param_val as &dyn $crate::ToSql)),+]
491 P::Item: ToSql, in execute() argument
519 pub fn execute_named(&self, sql: &str, params: &[(&str, &dyn ToSql)]) -> Result<usize> { in execute_named()
564 P::Item: ToSql, in query_row() argument
586 pub fn query_row_named<T, F>(&self, sql: &str, params: &[(&str, &dyn ToSql)], f: F) -> Result<T> in query_row_named() argument
623 P::Item: ToSql, in query_row_and_then() argument
1772 let b: Box<dyn ToSql> = Box::new(5); in test_dyn_box()
/external/rust/crates/rusqlite/tests/
Dvtab.rs6 use rusqlite::types::ToSql; in test_dummy_module()
100 .query_row(&[] as &[&dyn ToSql], |row| row.get::<_, i32>(0)) in test_dummy_module()
/external/rust/crates/rusqlite/
DREADME.md89 and [`ToSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.ToSql.html) for various
92 and [`ToSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.ToSql.html) for the
95 and [`ToSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.ToSql.html) for the
98 and [`ToSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.ToSql.html) for the
DChangelog.md5 * BREAKING CHANGE: `ToSql` implementation for `time::Timespec` uses RFC 3339 (%Y-%m-%dT%H:%M:%S.%fZ…
33 * The ToSql/FromSql implementations for time::Timespec now include
44 * Adds `ToSql` impls for `str` and `[u8]`.
49 * Adds `FromSql` and `ToSql` impls for `isize`. Documents why `usize` and `u64` are not included.
89 * Make `ToSqlOutput` itself implement `ToSql`.
95 * Added `FromSql` and `ToSql` impls for `i8`, `i16`, `u8`, `u16`, and `u32`.
110 * BREAKING CHANGE: The `ToSql` trait has been redesigned. It can now be implemented without
281 * Reexport `sqlite3_stmt` from `libsqlite3-sys` for easier `impl`-ing of `ToSql` and `FromSql`.
/external/rust/crates/rusqlite/src/vtab/
Darray.rs35 use crate::types::{ToSql, ToSqlOutput, Value};
53 impl ToSql for Array {
Dmod.rs23 use crate::types::{FromSql, FromSqlError, ToSql, ValueRef};
503 pub fn set_result<T: ToSql>(&mut self, value: &T) -> Result<()> { in set_result()
/external/rust/crates/rusqlite/src/blob/
Dmod.rs194 use super::types::{ToSql, ToSqlOutput};
400 impl ToSql for ZeroBlob {