code cleanup
This commit is contained in:
@@ -10,16 +10,14 @@ pub fn create_db() {
|
||||
connection.execute("PRAGMA foreign_keys = ON;", []).unwrap();
|
||||
|
||||
create_tables(&connection);
|
||||
}else {
|
||||
} else {
|
||||
let connection = Connection::open(&db_file).unwrap();
|
||||
|
||||
ensure_db_schema(&connection);
|
||||
}
|
||||
}
|
||||
|
||||
fn ensure_db_schema(conn: &Connection) {
|
||||
|
||||
}
|
||||
fn ensure_db_schema(conn: &Connection) {}
|
||||
|
||||
fn create_tables(conn: &Connection) {
|
||||
make_card_set(conn).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user