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
9
10
11
use crate::{Database, Res, Table};


pub trait Trigger<S: Table, D: Table> { 
    const TRIGGER: &str;

    fn create_trigger(database: &Database) -> Res<()> {
        database.execute(Self::TRIGGER)?;
        Ok(())
    }
}