Skip to main content

RusqliteStructHelper

Trait RusqliteStructHelper 

Source
pub trait RusqliteStructHelper {
    // Required methods
    fn insert_into_table_struct<T: RusqliteStruct + Serialize>(
        &self,
        from: &T,
    ) -> Result<()>;
    fn get_from_table_struct<T: RusqliteStruct + for<'a> Deserialize<'a>>(
        &self,
    ) -> Result<Vec<T>>;
}
Expand description

The name of the struct must be the same as the one used in the DB table.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RusqliteStructHelper for Connection

Implementors§