Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to wrap existing bolt instance #120

Open
ivanjaros opened this issue Oct 12, 2020 · 1 comment
Open

Add method to wrap existing bolt instance #120

ivanjaros opened this issue Oct 12, 2020 · 1 comment
Assignees

Comments

@ivanjaros
Copy link

func Wrap(db *bbolt.DB, options *Options) (*Store, error) {
	options = fillOptions(options)
	return &Store{
		db:     db,
		encode: options.Encoder,
		decode: options.Decoder,
	}, nil
}
@timshannon timshannon self-assigned this Oct 12, 2020
@tmm1
Copy link

tmm1 commented Jun 24, 2021

This would be very useful. @ivanjaros perhaps you can wrap your code snippet in a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants