Skip to content
Snippets Groups Projects
Commit 45aa1716 authored by Mika Specht's avatar Mika Specht
Browse files

Fix Database creation

parent b1668ed1
No related branches found
No related tags found
No related merge requests found
......@@ -3,5 +3,5 @@ use rusqlite::Connection;
pub fn create_datatabase_if_not_exists() {
let connection = Connection::open("databas.sqlite").unwrap();
let query = include_str!("createdb.sql");
connection.execute(query, []).unwrap();
connection.execute_batch(query).unwrap();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment