Hello all!
Sorry i am a new with Badger Database.
I am working with golang and badger database, please recommend me for use CLI Badger Tool.
When i run main.go file in badger library i can get all information look like image below.
Badger is an embeddable key-value store. It’s CLI tool is not meant for DB operations like inserting an entry or getting a value. It is for more general purposes like creating a backup of whole DB, restoring it, testing(benchmarking) badger etc. For details on how to use Badger, you can refer to its README.
The command, cd badger && go install will install badger and create a binary with the name badger inside directory pointed by $GOBIN. It is usually set to ~/go/bin
To run badger through terminal, you can either run the badger executable inside GOBIN or add directory containing badger executable to $PATH variable.
Not in this case. The go get command downloads the package and tries to install it.
The other command, cd badger && go install is run when the user is already inside github.com/dgraph-io/badger directory.
To generate the badger executable, use the cd badger && go install command.