Skip to content
/ sybod Public

Shrink Your BoltDB: it helps to shrink your BoltDB file to fit the real size.

License

Notifications You must be signed in to change notification settings

cydside/sybod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sybod

Shrink Your BoltDB: it helps to shrink your BoltDB file to fit the real size.

When you are testing CRUD operation on your BoltDB file and it only grows and never will adapt to the real size even if you delete all data inside, then this tool will help you to copy all the data to a new BoltDB file with the exact size.

This project is based on bbolt as the boltdb's author suggest.

Installing

To start using sybob, install Go and run go get:

$ go get github.com/cydside/sybod

Usage

sybod data.db

sybod data.db destination.db

Without destination file name it will create a copy of data.db named:

newcopy_data.db

Try it and let me know!

About

Shrink Your BoltDB: it helps to shrink your BoltDB file to fit the real size.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages