Skip to content

Sora233/buntdb-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buntdb-cli

an interactive buntdb shell client

ci Coverage Status


Install

Build from source

It's recommended to use binary release

  • go >= 1.13
go get -u -v github.com/Sora233/buntdb-cli

Usage

WARN: DO NOT use write command when other buntdb program is running, as multi write can destroy the buntdb file

Demo

  • Support Command
    • get
    • set
    • del
    • ttl
    • rbegin (begin a readonly transaction)
    • rwbegin (begin a read/write transaction)
    • commit
    • rollback
    • show
    • keys
    • search
    • use
    • shrink
    • save

You can provide -h flag for command to print help message. get

TODO

  • create index (Index is memory-only, You need to create index everytime you restart, so I am considering whether to impl it)