IntoSqlite

Trait IntoSqlite 

Source
pub trait IntoSqlite {
    // Required method
    fn into_sqlite(&self) -> String;
}
Expand description

A trait for converting a value to a SQLite value.

This is useful for making custom types that can be used as default value for columns.

§Note

If you want to use a custom type as a column type, you need to implement the rusqlite’s ToSql trait.

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoSqlite for &str

Source§

impl IntoSqlite for bool

Source§

impl IntoSqlite for f32

Source§

impl IntoSqlite for f64

Source§

impl IntoSqlite for i32

Source§

impl IntoSqlite for i64

Source§

impl IntoSqlite for String

Source§

impl IntoSqlite for NaiveDateTime

Implementors§