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

Create a database abstraction #90

Merged
merged 1 commit into from
Jun 8, 2016
Merged

Conversation

alde
Copy link
Contributor

@alde alde commented Jun 2, 2016

In order to prepare for adding support for more different databases, an
abstraction for the database drivers is needed.

}

func wrap(db *bolt.DB) TaskDB {
wrapped := boltDriver{}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a bit verbose I would prefer

return boltDriver{
    database: db,
}

@alde alde force-pushed the create-database-abstraction branch from f1fe3a5 to b081959 Compare June 2, 2016 23:24
In order to prepare for adding support for more different databases, an
abstraction for the database drivers is needed.
@alde alde force-pushed the create-database-abstraction branch from b081959 to ea9fd71 Compare June 3, 2016 13:56
@keis
Copy link
Collaborator

keis commented Jun 8, 2016

LGTM

@alde alde merged commit e73a6be into master Jun 8, 2016
@alde alde deleted the create-database-abstraction branch June 8, 2016 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants