mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-10 12:41:34 +00:00
fix insert query
This commit is contained in:
parent
382dbf9dd7
commit
c8d0b7151e
@ -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…
x
Reference in New Issue
Block a user