Skip to content

boltcli is the redis-cli for boltdb with Lua script support

License

Notifications You must be signed in to change notification settings

let-run/boltcli

 
 

Repository files navigation

screenshot

Travis GoReportCard codecov.io license

Feature

  • Support CRUD commands on the bucket/key in repl-like command line. You can consider it as redis-cli for boltdb.
  • You can eval Lua script with given database. It makes maintaining boltdb more easily.

Usage

boltcli [-e script] /path/to/db

Commands

See Commands

Lua support

You could run a lua script on specific database like this: boltcli -e your.lua db_path. boltcli provides a couple of API within the global variable bolt. For example:

bolt.get("bucket", "key") -- return the value of `key` as a lua string
-- is equal to > get bucket key in the command line

See test.lua as a concrete example.

About

boltcli is the redis-cli for boltdb with Lua script support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 94.6%
  • Lua 5.4%