Browse Source

fix insert query

master
yggverse 2 months ago
parent
commit
c8d0b7151e
  1. 3
      src/app/database.rs

3
src/app/database.rs

@ -25,7 +25,8 @@ impl Database { @@ -25,7 +25,8 @@ impl Database {
}
pub fn add(&self) -> Result<usize, Error> {
self.connection.execute("INSERT INTO `app`", [])
self.connection
.execute("INSERT INTO `app` DEFAULT VALUES", [])
}
pub fn records(&self) -> Result<Vec<Table>, Error> {

Loading…
Cancel
Save