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

Add DuckDB support to migrate #1077

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michaelmdresser
Copy link

This code was originally written here https://github.com/kubecost/golang-migrate-duckdb/tree/mmd/make-importable and has been moved to my fork for upstreaming. I focused on duplicating the sqlite3 implementation because DuckDB is behaviorally similar to SQLite. This code has been used in a private project successfully for a little while now.

DuckDB unfortunately has a CGO requirement like sqlite. I was not sure how to run the test suite using the Makefile when there is a CGO dependency present, so I just used a manual go test -v ./database/duckdb/... to see if the unit tests succeeded. Please let me know if there is a way I can run the full test suite locally so as to not waste CI time.

Originally written in https://github.com/kubecost/golang-migrate-duckdb/tree/mmd/make-importable

Signed-off-by: Michael Dresser <michaelmdresser@gmail.com>
@coveralls
Copy link

Coverage Status

coverage: 56.384% (+0.05%) from 56.335%
when pulling fbd7169 on michaelmdresser:duckdb
into 0c456c4 on golang-migrate:master.

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.

None yet

2 participants