mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +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> {
|
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> {
|
pub fn records(&self) -> Result<Vec<Table>, Error> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue