https://github.com/schmichael/boltq
boltdb command line query interface
https://github.com/schmichael/boltq
boltdb boltdb-command cli
Last synced: about 1 year ago
JSON representation
boltdb command line query interface
- Host: GitHub
- URL: https://github.com/schmichael/boltq
- Owner: schmichael
- License: mpl-2.0
- Created: 2017-06-30T22:03:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-31T15:29:35.000Z (over 2 years ago)
- Last Synced: 2025-03-25T14:21:46.342Z (about 1 year ago)
- Topics: boltdb, boltdb-command, cli
- Language: Go
- Size: 7.81 KB
- Stars: 7
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# boltq
boltdb command line query interface
```sh
$ # list buckets
$ boltq some.db
foo
bar
$ # list keys
$ boltq some.db foo
k1
k2
$ # get value
$ boltq some.db foo k1
value1
$ # set a new value
$ boltq some.db foo k1 value9000
$ boltq -v some.db foo k1
value9000
$ # The -v is verbose mode which when reading values simply appends a newline
$
$ # Sub-buckets can be listed with -v:
$ boltq -v some.db bar
b1 (bucket)
b2 (bucket)
$ boltq some.db bar.b1
eggs
spam
```