luncheon 0.2.11

A library to make working with SQLITE in a more typed and traited way
Documentation
1
2
3
4
5
6
7
8
use crate::{Database, Res, Table};

pub trait SearchIndex<T: Table> {
    const INDEX_QUERY: &str;
    fn create_index(database: &Database) -> Res<()> {
        database.execute(Self::INDEX_QUERY)
    }
}