Migrate: Support sqlite in released CLI

Created on 19 Jun 2018  路  4Comments  路  Source: golang-migrate/migrate

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.

enhancement help wanted

Most helpful comment

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

All 4 comments

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

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

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

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

Was this page helpful?
0 / 5 - 0 ratings