[][src]Trait rusqlite::types::ToSql

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

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

Required methods

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 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<'a, T: ?Sized> ToSql for &'a 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<'a> ToSql for Cow<'a, str>
[src]

Loading content...

Implementors

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

impl ToSql for ZeroBlob
[src]

impl ToSql for Null
[src]

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

Loading content...