schmichael / boltq

boltdb command line query interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

boltq

boltdb command line query interface

$ # 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

About

boltdb command line query interface

License:Mozilla Public License 2.0


Languages

Language:Go 100.0%