Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Remove ease-of-use functions from the DB type. #68

Merged
merged 1 commit into from
Mar 21, 2014

Conversation

benbjohnson
Copy link
Member

Functions such as DB.Put(), DB.Get(), and DB.Delete() were originally added to be easy to use, however, after implementing Bolt in multiple projects I have found these ease-of-use functions useless. Nearly every use case requires multiple calls in a single transaction.

Using the DB ease of use functions turned out to be an anti-pattern.

Fixes #67.

Functions such as DB.Put(), DB.Get(), and DB.Delete() were originally
added to be easy to use, however, after implementing Bolt in multiple
projects I have found these ease-of-use functions useless. Nearly
every use case requires multiple calls in a single transaction.

Using the DB ease of use functions turned out to be an antipattern.
benbjohnson added a commit that referenced this pull request Mar 21, 2014
Remove ease-of-use functions from the DB type.
@benbjohnson benbjohnson merged commit 2eea576 into boltdb:master Mar 21, 2014
@benbjohnson benbjohnson deleted the remove-db-functions branch March 21, 2014 16:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Ease-of-Use Functions
1 participant