feat: stream currently playing + volume + toggle pause + seek position
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
pub mod artists;
|
||||
pub mod paths;
|
||||
pub mod tracks;
|
||||
pub mod artists;
|
||||
|
||||
use r2d2::{Pool, PooledConnection};
|
||||
use r2d2_sqlite::SqliteConnectionManager;
|
||||
@@ -37,21 +37,21 @@ pub fn initialize_database(
|
||||
[],
|
||||
)?;
|
||||
|
||||
connection
|
||||
.execute(
|
||||
"
|
||||
connection.execute(
|
||||
"
|
||||
CREATE TABLE IF NOT EXISTS tracks (
|
||||
hash TEXT PRIMARY KEY NOT NULL,
|
||||
library_path_id INTEGER NOT NULL,
|
||||
name TEXT NOT NULL,
|
||||
artist_id INTEGER NOT NULL,
|
||||
path TEXT NOT NULL,
|
||||
duration INTEGER NOT NULL,
|
||||
FOREIGN KEY (library_path_id) REFERENCES library_paths (id) ON DELETE CASCADE,
|
||||
FOREIGN KEY (artist_id) REFERENCES artists (id) ON DELETE CASCADE
|
||||
);
|
||||
",
|
||||
[],
|
||||
)?;
|
||||
[],
|
||||
)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user