Skip to content

Add multiple database support - #23

Merged
RyanConnell merged 1 commit into
RyanConnell:developfrom
VoyTechnology:multi-database
Feb 27, 2021
Merged

Add multiple database support#23
RyanConnell merged 1 commit into
RyanConnell:developfrom
VoyTechnology:multi-database

Conversation

@VoyTechnology

Copy link
Copy Markdown
Collaborator

In the future this will allow to use other databases.

Comment threaddatabase/database.go
"database/sql"
"fmt"

_ "github.com/go-sql-driver/mysql"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

You need to update go.mod for this:

database/database.go:8:2: no required module provides package github.com/mattn/go-sqlite3; to add it:
go get github.com/mattn/go-sqlite3

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

This was accidentally merged in #21, I just rebased the branch so it includes the changes.

In the future this will allow to use other databases.
@RyanConnell
RyanConnell merged commit 2eba5ec into RyanConnell:developFeb 27, 2021
@VoyTechnology
VoyTechnology deleted the multi-database branch March 3, 2021 00:19
VoyTechnology added a commit to VoyTechnology/ryanconnell-tracker that referenced this pull request Mar 6, 2021
In the future this will allow to use other databases.
VoyTechnology added a commit to VoyTechnology/ryanconnell-tracker that referenced this pull request Mar 6, 2021
In the future this will allow to use other databases.
VoyTechnology added a commit to VoyTechnology/ryanconnell-tracker that referenced this pull request Mar 6, 2021
In the future this will allow to use other databases.
RyanConnell pushed a commit that referenced this pull request Mar 14, 2021
* Add multiple database support (#23)
In the future this will allow to use other databases.
* Add user database interface
This change add an interface which can be implemented by various systems
to store the data. This means that we won't have to always rely on SQL.
It is up to implementation to return the correct information.
* Removed the shrug
Ryan didn't want the shrug.
Sign up for freeto 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

@VoyTechnology@RyanConnell