fn init_db(s: &str) -> Result<sqlite::Connection> {

    let conn = sqlite::open(s).unwrap();
    
    // Create tables if not exist
    conn.execute(
        "create table if not exists recipes (
            id integer primary key,
            name text not null,
            recipe text not null,
            return text)",
        ).unwrap();

    conn.execute(
        "create table if not exists servers (
            id integer primary key,
            name text not null,
            uri text not null)",
        ).unwrap();

    conn.execute(
        r#"INSERT OR IGNORE INTO recipes VALUES (1,
        'Base64',
        '[{"op":"To Base64","args":["A-Za-z0-9+/="]}]',
        'string')"#
        ).unwrap();

    conn.execute(
        r#"INSERT OR IGNORE INTO servers VALUES (1,
        'local',
        'http://localhost:3000/bake')"#
            ).unwrap();

    Ok(conn)
}
// Initialise database, will not modify if exists
Initialise database, will not modify if exists
Initialise database will not modify if exists
fn init_db(s: &str) -> Result<sqlite::Connection> {
    let conn = sqlite::open(s).unwrap();
    // Create tables if not exist
    conn.execute(
        "create table if not exists recipes (
            id integer primary key,
            name text not null,
            recipe text not null,
            return text)",
        ).unwrap();
    conn.execute(
        "create table if not exists servers (
            id integer primary key,
            name text not null,
            uri text not null)",
        ).unwrap();
    conn.execute(
        r#"INSERT OR IGNORE INTO recipes VALUES (1,
        'Base64',
        '[{"op":"To Base64","args":["A-Za-z0-9+/="]}]',
        'string')"#
        ).unwrap();
    conn.execute(
        r#"INSERT OR IGNORE INTO servers VALUES (1,
        'local',
        'http://localhost:3000/bake')"#
            ).unwrap();
    Ok(conn)
}
fn init_db ( s : & str ) -> Result < sqlite :: Connection > { let conn = sqlite :: open ( s ) . unwrap ( ) ; // Create tables if not exist conn . execute ( " " , ) . unwrap ( ) ; conn . execute ( " " , ) . unwrap ( ) ; conn . execute ( r#"INSERT OR IGNORE INTO recipes VALUES (1,
        'Base64',
        '[{"op":"To Base64","args":["A-Za-z0-9+/="]}]',
        'string')"# ) . unwrap ( ) ; conn . execute ( r#"INSERT OR IGNORE INTO servers VALUES (1,
        'local',
        'http://localhost:3000/bake')"# ) . unwrap ( ) ; Ok ( conn ) }
Initialise database, will not modify if exists
Initialise database will not modify if exists
s
&str
s
&str