Toboggan is an RPC-based key/value database client and server built on Google's tarpc library and the sled embedded database. RPC requests can be sent using the client CLI or by leveraging the toboggan-lib
crate's client stubs to integrate it into your own Rust program. At time of writing, the following operations are supported, with more to come soon.
cargo install toboggan
You can view the helptext for the server cli using the command cargo run --bin server -- -h
.
The command cargo run --bin server -- -a 10.0.18.135 -p 5050 -d ./db tcp
will create/open a database at
The client helptext can similarly be viewed with cargo run --bin client -- -h
.
Helptext for a specific subcommand can be viewed using cargo run --bin client -- <subcommand> -h
To insert the value "Thor M." into the "my_name" key of the "names" tree of the server above, use the following command:
cargo run --bin client -- -a 10.0.18.135 -p 5050 insert -k my_name "Thor M." -t names