Trait rusqlite::ToSql[][src]

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

A trait for types that can be converted into SQLite values. Returns Error::ToSqlConversionFailure if the conversion fails.

Required methods

Converts Rust value to SQLite value

Implementations on Foreign Types

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

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

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

Date and time with time zone => UTC RFC3339 timestamp (“YYYY-MM-DD HH:MM:SS.SSS+00:00”).

Serialize JSON Value to text.

Serialize Url to text.

Implementors