generated from lucien/actix-react-template
back_end #6
1 changed files with 2 additions and 2 deletions
|
@ -6,9 +6,9 @@ pub fn init() -> sqlite::Result<()> {
|
||||||
OpenFlags::new()
|
OpenFlags::new()
|
||||||
.with_create()
|
.with_create()
|
||||||
.with_read_write()
|
.with_read_write()
|
||||||
);
|
)?;
|
||||||
|
|
||||||
conn?.execute(
|
conn.execute(
|
||||||
"CREATE TABLE IF NOT EXISTS articles (
|
"CREATE TABLE IF NOT EXISTS articles (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
title TEXT NOT NULL,
|
title TEXT NOT NULL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue