mirror of
https://github.com/agersant/polaris
synced 2024-12-11 13:56:24 +00:00
Moved index out of db module
This commit is contained in:
parent
48f2913816
commit
11ff053b9d
3 changed files with 5 additions and 4 deletions
|
@ -14,10 +14,10 @@ use errors::*;
|
||||||
use user::*;
|
use user::*;
|
||||||
use vfs::{MountPoint, Vfs};
|
use vfs::{MountPoint, Vfs};
|
||||||
|
|
||||||
mod index;
|
|
||||||
mod schema;
|
mod schema;
|
||||||
|
|
||||||
use self::index::{CollectionFile, Directory, Song};
|
use index;
|
||||||
|
use index::{CollectionFile, Directory, Song};
|
||||||
pub use self::schema::*;
|
pub use self::schema::*;
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
|
@ -127,7 +127,7 @@ impl DB {
|
||||||
index::update_loop(self);
|
index::update_loop(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_vfs(&self) -> Result<Vfs> {
|
pub fn get_vfs(&self) -> Result<Vfs> {
|
||||||
use self::mount_points::dsl::*;
|
use self::mount_points::dsl::*;
|
||||||
let mut vfs = Vfs::new();
|
let mut vfs = Vfs::new();
|
||||||
let connection = self.connection.lock().unwrap();
|
let connection = self.connection.lock().unwrap();
|
||||||
|
|
|
@ -11,7 +11,7 @@ use std::time;
|
||||||
|
|
||||||
use config::{MiscSettings, UserConfig};
|
use config::{MiscSettings, UserConfig};
|
||||||
use db::DB;
|
use db::DB;
|
||||||
use db::schema::*;
|
use db::{directories, misc_settings, songs};
|
||||||
use errors::*;
|
use errors::*;
|
||||||
use metadata;
|
use metadata;
|
||||||
|
|
|
@ -63,6 +63,7 @@ mod config;
|
||||||
mod db;
|
mod db;
|
||||||
mod ddns;
|
mod ddns;
|
||||||
mod errors;
|
mod errors;
|
||||||
|
mod index;
|
||||||
mod metadata;
|
mod metadata;
|
||||||
mod ui;
|
mod ui;
|
||||||
mod user;
|
mod user;
|
||||||
|
|
Loading…
Reference in a new issue