cockroach_deploy

Crates.iocockroach_deploy
lib.rscockroach_deploy
version0.1.2
created_at2025-03-07 01:04:39.70808+00
updated_at2025-03-07 06:08:02.733625+00
descriptionRust lib for a basic local cockroachdb deployment with optional CLI
homepage
repositoryhttps://github.com/simp4t7/cockroach_deploy
max_upload_size
id1582098
size114,035
(simp4t7)

documentation

https://docs.rs/cockroach_deploy

README

cockroach_deploy

Basic library for deploying a simple local cockroach cluster with an optional CLI included.

crates.io Docs

About

The main purpose for this library is quickly deploying a basic cockroachdb cluster locally. You will need a local Kubernetes cluster running for this to work. I have only tested this with minikube, but others may work as well. Additionally, you will need a local config file for setting cockroachdb variables.

Installation & Usage

if using the CLI:

cargo install cockroach_deploy

usage:

cockroach_deploy_cli --help

if using the library:

cargo add cockroach_deploy

Basic Usage

let config = CockroachConfig::new_from_config("cockroach_config.toml")?;
config.init_cockroach()?;
config.delete_cockroach()?;

Additional Note

This is pretty niche, and adapated for my use-case so your mileage may vary. If you are interested and struggling to get it to work, open an issue and I'll do what I can to help adapt it.

Commit count: 13

cargo fmt