pub fn create_timer<'a>(conn: &SqliteConnection, name: &'a str, start_entry: &'a str) -> usize {
    let new_timer = NewTimer {
        name,
        start_time: Local::now().timestamp() as i32,
        start_entry,
        running: 1,
    };

    diesel::insert_into(timers::table)
        .values(&new_timer)
        .execute(conn)
        .expect("Error saving new timer")
}
// create_timer takes a conenction and a name and start_entry string and creates
// a new timer.
create_timer takes a conenction and a name and start_entry string and creates
a new timer.
create_timer takes a conenction and a name and start_entry string and creates a new timer .
pub fn create_timer<'a>(conn: &SqliteConnection, name: &'a str, start_entry: &'a str) -> usize {
    let new_timer = NewTimer {
        name,
        start_time: Local::now().timestamp() as i32,
        start_entry,
        running: 1,
    };
    diesel::insert_into(timers::table)
        .values(&new_timer)
        .execute(conn)
        .expect("Error saving new timer")
}
pub fn create_timer < ' a > ( conn : & SqliteConnection , name : & ' a str , start_entry : & ' a str ) -> usize { let new_timer = NewTimer { name , start_time : Local :: now ( ) . timestamp ( ) as i32 , start_entry , running : 1 , } ; diesel :: insert_into ( timers :: table ) . values ( & new_timer ) . execute ( conn ) . expect ( " " ) }
create_timer takes a conenction and a name and start_entry string and creates
a new timer.
create_timer takes a conenction and a name and start_entry string and creates a new timer .
conn
&SqliteConnection
name
&'a str
start_entry
&'a str
conn
&SqliteConnection
name
&'a str
start_entry
&'a str