mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +00:00
fix error
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
use patch_db::json_ptr::{JsonPointer, PtrSegment};
|
use patch_db::json_ptr::{JsonPointer, PtrSegment, ROOT};
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
@@ -23,7 +23,7 @@ async fn main() {
|
|||||||
Some(("dump", matches)) => {
|
Some(("dump", matches)) => {
|
||||||
let path = matches.value_of("PATH").unwrap();
|
let path = matches.value_of("PATH").unwrap();
|
||||||
let db = patch_db::PatchDb::open(path).await.unwrap();
|
let db = patch_db::PatchDb::open(path).await.unwrap();
|
||||||
let dump = db.dump().await;
|
let dump = db.dump(&ROOT).await;
|
||||||
serde_json::to_writer_pretty(&mut std::io::stdout(), &dump.value).unwrap();
|
serde_json::to_writer_pretty(&mut std::io::stdout(), &dump.value).unwrap();
|
||||||
println!();
|
println!();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user