https://slatedb.io logo
for local setup, should one use minIO for path val...
# general
r
for local setup, should one use minIO for path value?
Copy code
cargo run --bin slatedb --features="cli" --path
c
You have several options
Copy code
match provider {
        "local" => load_local(),
        #[cfg(feature = "aws")]
        "aws" => load_aws(),
        #[cfg(feature = "azure")]
        "azure" => load_azure(),
        _ => Err(format!("Unknown CLOUD_PROVIDER: '{}'", provider).into()),
    }
local
uses the local filesystem to simulat object storage
If you select
aws
you can use any AWS compatible store. I often use LocalStack.
I haven't tried MinIO with it, but I believe it should work.
r
thanks, this helps
I feel like I’m missing something here. I'm trying to run the SlateDB process, and then I want to test out the Bencer. Any pointers on how to best run this?
Copy code
cargo run --bin slatedb --features="cli" --manifest-path Cargo.toml read-manifest  
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.48s
     Running `target/debug/slatedb read-manifest`
error: the following required arguments were not provided:
  --path <PATH>
Usage: slatedb --path <PATH> <COMMAND>
c
Ya it's a little goofy, but you need a second -- in there. See benchmark-db .sh for an example
r
oh got it! Thanks.
i am able to run read-manifest and list-manifests.
Copy code
cargo run --bin slatedb --features="cli" --manifest-path Cargo.toml --  --path /tmp/slatedb read-manifest
No manifest file found.

➜  slatedb git:(mohinish/iss300) cargo run --bin slatedb --features="cli" --manifest-path Cargo.toml --  --path /tmp/slatedb list-manifests
[]
How do i get it to generate the manifests?
c
Manifests are created when a DB first starts up
Why are you setting --manifest-path to Cargo.toml?
Cargo.toml is a Rust build file.
r
Basically trying to setup things on my local to run slatedb, bencher and tests, and hoping to compile all the necessary steps to put together how to build run and test documentation.
c
This should help ^
Copy code
cargo run --bin slatedb --features="cli" -- --path /slatedb-bencher_20_4 list-manifests
With my env having: CLOUD_PROVIDER=local LOCAL_PATH=/tmp/slatedb-lfs
r
Yup i am trying to figure out how to just start the db. Based on cli usage and docs I couldn’t find it was suggesting to use the read and list commands
c
Ah. To start the DB, you need to use it in your application. It's an embedded library, not a standalone process.
r
Ah got it, I see so I gotta write some code or probably fiddle with tests to invoke the embedded db
c
Yup
r
This was just trying to play around with cargo cli
c
slatedb.io has a link to an example.. and the README.md does as well
If you want, you can run the bencher
That will create DBs
(That's what that screenshot is above)
r
Sounds good this helps, will give it a try
c
./src/bencher/benchmark-db.sh
r
+1