errores
This commit is contained in:
1 parent
076c60658d
commit
690f92f565
3 files changed
+102
-81
No files matched your search
+5
-19
@@ -2,29 +2,15 @@ mod db;
|
||||
|
||||
extern crate walkdir;
|
||||
|
||||
use rekordcrate::pdb::Page;
|
||||
use rekordcrate::pdb::PageError;
|
||||
use rekordcrate::pdb::PageIndex;
|
||||
use rekordcrate::pdb::Row::PlaylistEntry;
|
||||
use rekordcrate::pdb::string::DeviceSQLString;
|
||||
use rekordcrate::pdb::RowGroup;
|
||||
use rekordcrate::pdb::TrackId;
|
||||
use rekordcrate::pdb::PageType;
|
||||
use rekordcrate::pdb::Table;
|
||||
use rekordcrate::pdb::{Header, PlaylistTreeNode, PlaylistTreeNodeId};
|
||||
use walkdir::WalkDir;
|
||||
use std::env;
|
||||
use std::fs::create_dir;
|
||||
use std::fs::create_dir_all;
|
||||
use std::{fs::exists, path::Path};
|
||||
use rekordcrate::util::RekordcrateError;
|
||||
use std::path::Path;
|
||||
use db::Database;
|
||||
|
||||
// Example
|
||||
fn main() -> Result<(), PageError> {
|
||||
fn main() -> Result<(), RekordcrateError> {
|
||||
let db = Database::load_from_pdb("ntr.pdb").unwrap();
|
||||
println!("tracks: {}, playlists: {}", db.tracks.len(), db.nodes.len());
|
||||
println!("tables: {:?}", db.header);
|
||||
println!("tables: {:?}", db.header.tables);
|
||||
|
||||
println!("{:?}", db.colors);
|
||||
|
||||
let output = Path::new("./data/output.pdb");
|
||||
db.export(&output).unwrap();
|
||||
|
||||
Reference in new issue
Block a user