pub enum Command {
Serve {
db_dir: PathBuf,
addr: SocketAddr,
ui: ServeUi,
demo_if_empty: bool,
token: Option<String>,
snapshot_every: Option<Duration>,
},
Mcp {
db_dir: PathBuf,
},
Stats {
db_dir: PathBuf,
},
Demo {
db_dir: PathBuf,
},
AsOf {
db_dir: PathBuf,
commit: u64,
query: Option<String>,
},
Suggest {
db_dir: PathBuf,
},
Algo {
db_dir: PathBuf,
subcmd: AlgoSubcmd,
top: usize,
},
Query {
db_dir: PathBuf,
cypher: String,
},
Snapshot {
db_dir: PathBuf,
keep_wal: bool,
},
SchemaApply {
db_dir: PathBuf,
schema_file: PathBuf,
},
Help,
}Expand description
Parsed mushroomdb invocation.
Variants§
Serve
Fields
§
addr: SocketAddrMcp
Stats
Demo
AsOf
Read-only view of the database at a past commit.
Fields
Suggest
Profile the database and suggest linking rules with estimated edge counts.
Algo
Run a graph algorithm (pagerank / wcc / degree).
Query
Run a Cypher query (read or write).
Snapshot
Write snapshot.bin (default truncates WAL unless --keep-wal).
SchemaApply
Apply a JSON schema file idempotently (schema apply <db-dir> <schema.json>).
Help
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more