Fixed databse init function again

This commit is contained in:
Lukian 2024-12-06 01:31:27 +01:00
parent 8f8fc0c46e
commit 85ab4aba4f

View file

@ -6,9 +6,9 @@ pub fn init() -> sqlite::Result<()> {
OpenFlags::new()
.with_create()
.with_read_write()
);
)?;
conn?.execute(
conn.execute(
"CREATE TABLE IF NOT EXISTS articles (
id INTEGER PRIMARY KEY,
title TEXT NOT NULL,