We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Basic operations for RoseDB.
package main import ( "fmt" "github.com/flower-corp/rosedb" "path/filepath" ) func main() { path := filepath.Join("/tmp", "rosedb") // specify other options // opts.XXX opts := rosedb.DefaultOptions(path) db, err := rosedb.Open(opts) if err != nil { fmt.Printf("open rosedb err: %v", err) return } defer func() { _ = db.Close() }() }
You must specify a file path to open rosedb.
And you can set other options by otps.XXX.
otps.XXX
Contents