Skip to content
/ rod Public

Simple way to put and get values to/from a BoltDB store in Go.

License

Notifications You must be signed in to change notification settings

chilts/rod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rod : helper functions inside BoltDB transactions

Overview GoDoc Build Status Code Climate Go Report Card

Rod is a simple way to put and get values to/from a BoltDB store. It can deal with deep-hierarchies easily and is therefore a rod straight to the value you want.

Installation

go get github.com/chilts/rod

Or (for gb):

gb vendor fetch github.com/chilts/rod

Example

user := User{
    Name: "chilts",
    Email: "andychilton@gmail.com",
    Logins: 1,
    Inserted: time.Now(),
}

db.Update(func(tx *bolt.TX) error {
    return rod.PutJson(tx, "users.chilts", "chilts", user)
})

Author

By Andrew Chilton, @twitter.

For AppsAttic, @AppsAttic.

License

MIT.

(Ends)

About

Simple way to put and get values to/from a BoltDB store in Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages