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

Support sqlite in released CLI #59

Open
dhui opened this issue Jun 19, 2018 · 4 comments
Open

Support sqlite in released CLI #59

dhui opened this issue Jun 19, 2018 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dhui
Copy link
Member

dhui commented Jun 19, 2018

Currently, SQLite is not built into the release CLI.

It means that SQLite is not officially supported by migrate since it's not in our test suite. This is due to issues with cross-compiling and CGO. mattn/go-sqlite3, the most popular sqlite driver and only one that is included in the compatibility test, requires cgo. In fact, it looks like all golang sqlite drivers require cgo at this time.

References:

So if you want to use sqlite with the migrate CLI, you'll need to build it yourself or use the docker image.

@dhui dhui added enhancement New feature or request help wanted Extra attention is needed labels Jun 19, 2018
@turboMaCk
Copy link

hello, @dhui does this mean that SQLite is currently not supported by CLI tool?

@dhui
Copy link
Member Author

dhui commented Mar 24, 2019

I've updated the issue description, which will hopefully answer your question.

@dhui
Copy link
Member Author

dhui commented Jan 7, 2020

In theory, the docker builds could support sqlite since there's no need to cross-compile

@dhui dhui mentioned this issue Jan 9, 2020
@verdverm
Copy link

https://github.com/karalabe/xgo might have a docker based solution already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants