[][src]Trait rusqlite::ToSql

pub trait ToSql {
    fn to_sql(&self) -> Result<ToSqlOutput>;
}

A trait for types that can be converted into SQLite values.

Required methods

fn to_sql(&self) -> Result<ToSqlOutput>

Loading content...

Implementations on Foreign Types

impl ToSql for NaiveDate[src]

ISO 8601 calendar date without timezone => "YYYY-MM-DD"

impl ToSql for NaiveTime[src]

ISO 8601 time without timezone => "HH:MM:SS.SSS"

impl ToSql for NaiveDateTime[src]

ISO 8601 combined date and time without timezone => "YYYY-MM-DD HH:MM:SS.SSS"

impl<Tz: TimeZone> ToSql for DateTime<Tz>[src]

Date and time with time zone => UTC RFC3339 timestamp ("YYYY-MM-DDTHH:MM:SS.SSS+00:00").

impl ToSql for Value[src]

Serialize JSON Value to text.

impl ToSql for Timespec[src]

impl ToSql for Box<dyn ToSql>[src]

impl ToSql for bool[src]

impl ToSql for i8[src]

impl ToSql for i16[src]

impl ToSql for i32[src]

impl ToSql for i64[src]

impl ToSql for isize[src]

impl ToSql for u8[src]

impl ToSql for u16[src]

impl ToSql for u32[src]

impl ToSql for f64[src]

impl<T: ?Sized, '_> ToSql for &'_ T where
    T: ToSql
[src]

impl ToSql for String[src]

impl ToSql for str[src]

impl ToSql for Vec<u8>[src]

impl ToSql for [u8][src]

impl<T: ToSql> ToSql for Option<T>[src]

impl<'_> ToSql for Cow<'_, str>[src]

impl ToSql for Url[src]

Serialize Url to text.

Loading content...

Implementors

impl ToSql for rusqlite::types::Value[src]

impl ToSql for ZeroBlob[src]

impl ToSql for Null[src]

impl<'_> ToSql for ToSqlOutput<'_>[src]

Loading content...