Trait klickhouse::ToSql

source ·
pub trait ToSql {
    // Required method
    fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>;
}
Expand description

A type that can be converted to a raw Clickhouse SQL value.

Required Methods§

source

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

Implementations on Foreign Types§

source§

impl ToSql for bool

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for f32

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for f64

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for i8

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for i16

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for i32

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for i64

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for i128

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for u8

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for u16

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for u32

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for u64

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for u128

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for String

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for DateTime<Tz>

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for DateTime<Utc>

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for Coord

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for LineString

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for MultiPolygon

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for Point

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for Polygon

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl ToSql for Decimal

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<'a> ToSql for &'a str

source§

fn to_sql(self, _type_hint: Option<&Type>) -> Result<Value>

source§

impl<'a, T: ToSql + Clone> ToSql for &'a T

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<'a, T: ToSql + Clone> ToSql for &'a mut T

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql> ToSql for (T0,)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql> ToSql for (T0, T1)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql> ToSql for (T0, T1, T2)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql> ToSql for (T0, T1, T2, T3)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql> ToSql for (T0, T1, T2, T3, T4)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql> ToSql for (T0, T1, T2, T3, T4, T5)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql, T6: ToSql> ToSql for (T0, T1, T2, T3, T4, T5, T6)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql, T6: ToSql, T7: ToSql> ToSql for (T0, T1, T2, T3, T4, T5, T6, T7)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql, T6: ToSql, T7: ToSql, T8: ToSql> ToSql for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql, T6: ToSql, T7: ToSql, T8: ToSql, T9: ToSql> ToSql for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql, T6: ToSql, T7: ToSql, T8: ToSql, T9: ToSql, T10: ToSql> ToSql for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql, T6: ToSql, T7: ToSql, T8: ToSql, T9: ToSql, T10: ToSql, T11: ToSql> ToSql for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql, T6: ToSql, T7: ToSql, T8: ToSql, T9: ToSql, T10: ToSql, T11: ToSql, T12: ToSql> ToSql for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql, T6: ToSql, T7: ToSql, T8: ToSql, T9: ToSql, T10: ToSql, T11: ToSql, T12: ToSql, T13: ToSql> ToSql for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql, T6: ToSql, T7: ToSql, T8: ToSql, T9: ToSql, T10: ToSql, T11: ToSql, T12: ToSql, T13: ToSql, T14: ToSql> ToSql for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T0: ToSql, T1: ToSql, T2: ToSql, T3: ToSql, T4: ToSql, T5: ToSql, T6: ToSql, T7: ToSql, T8: ToSql, T9: ToSql, T10: ToSql, T11: ToSql, T12: ToSql, T13: ToSql, T14: ToSql, T15: ToSql> ToSql for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T: ToSql + 'static> ToSql for Vec<T>

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T: ToSql> ToSql for Option<T>

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T: ToSql> ToSql for Box<T>

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T: ToSql, Y: ToSql> ToSql for BTreeMap<T, Y>

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T: ToSql, Y: ToSql> ToSql for HashMap<T, Y>

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

source§

impl<T: ToSql, const N: usize> ToSql for [T; N]

source§

fn to_sql(self, type_hint: Option<&Type>) -> Result<Value>

Implementors§

source§

impl ToSql for Value

source§

impl ToSql for Bytes

source§

impl ToSql for Date

source§

impl ToSql for klickhouse::DateTime

source§

impl ToSql for Ipv4

source§

impl ToSql for Ipv6

source§

impl ToSql for klickhouse::MultiPolygon

source§

impl ToSql for klickhouse::Point

source§

impl ToSql for klickhouse::Polygon

source§

impl ToSql for Ring

source§

impl ToSql for Uuid

source§

impl ToSql for i256

source§

impl ToSql for u256

source§

impl<T: Serialize> ToSql for Json<T>

source§

impl<T: ToSql> ToSql for VecTuple<T>

source§

impl<T: ToSql, Y: ToSql> ToSql for IndexMap<T, Y>

source§

impl<const PRECISION: u64> ToSql for FixedPoint32<PRECISION>

source§

impl<const PRECISION: u64> ToSql for FixedPoint64<PRECISION>

source§

impl<const PRECISION: u64> ToSql for FixedPoint128<PRECISION>

source§

impl<const PRECISION: u64> ToSql for FixedPoint256<PRECISION>

source§

impl<const PRECISION: usize> ToSql for DateTime64<PRECISION>