Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

Don't load in all drivers by default #40 #43

Merged
merged 1 commit into from
Nov 11, 2015

Conversation

lepoetemaudit
Copy link
Contributor

Requires activating drivers with a _ style import, e.g.
import _ " github.com/mattes/migrate/driver/postgres"

I guess it's not fully backwards compatible (users will need to add the import for the driver they wish to use) but it avoids all dependencies being pulled in when they aren't needed.

Requires activating drivers with a _ style import, e.g.
import "_ github.com/mattes/migrate/driver/postgres"
@lepoetemaudit
Copy link
Contributor Author

It's failing on Go 1.2 as apparently gocql (at least recently) does not support Go 1.2.

@Perlence
Copy link

Stumbled across this one too.

@raphaeljlps
Copy link
Contributor

thats a nice addition, could you guys fix it @lepoetemaudit @mattes ?

@lepoetemaudit
Copy link
Contributor Author

I think this has been superseded by some other PRs and plus it's now somewhat behind master, but I'm willing to fix the conflicts and upate it if @mattes wishes

@mattes
Copy link
Owner

mattes commented Sep 30, 2015

Although this will break existing code, I feel it's worth it to merge this. It has been requested a lot. @lepoetemaudit, do you think you have time to rebase with master?

@mattes mattes mentioned this pull request Oct 14, 2015
@gravis gravis mentioned this pull request Oct 19, 2015
@mattes mattes merged commit 0741616 into mattes:master Nov 11, 2015
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.

None yet

4 participants