make first runnable version

This commit is contained in:
2026-06-06 18:01:59 +02:00
parent 6a3817d835
commit 94e4de8051
21 changed files with 1664 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
use rusqlite::Connection;
use crate::paths::db_path;
pub fn init_db() {
let conn = Connection::open(db_path()).unwrap();
conn.execute(
"CREATE TABLE IF NOT EXISTS songs (
id INTEGER PRIMARY KEY,
name TEXT UNIQUE,
path TEXT
)",
[],
).unwrap();
}