mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix insert query
This commit is contained in:
parent
382dbf9dd7
commit
c8d0b7151e
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue