Skip to content

Support duckdb #304

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- test-mysql
- test-mysql-async
- test-tiberius
- test-duckdb
- doc
steps:
- run: exit 0
Expand Down Expand Up @@ -54,6 +55,20 @@ jobs:
- run: cargo install --path ./refinery_cli --no-default-features --features=sqlite-bundled
- run: cd refinery && cargo test --features rusqlite --test rusqlite

test-duckdb:
name: Test duckdb
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, nightly, 1.65.0]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- run: cargo install --path ./refinery_cli --no-default-features --features=duckdb
- run: cd refinery && cargo test --features duckdb --test duckdb

test-postgres:
name: Test postgres
runs-on: ubuntu-latest
Expand Down
15 changes: 12 additions & 3 deletions refinery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
name = "refinery"
version = "0.8.11"
rust-version = "1.56"
authors = ["Katharina Fey <[email protected]>", "João Oliveira <[email protected]>"]
authors = [
"Katharina Fey <[email protected]>",
"João Oliveira <[email protected]>",
]
license = "MIT"
description = "Powerful SQL migration toolkit for Rust"
readme = "README.md"
Expand All @@ -13,7 +16,7 @@ categories = ["database"]
edition = "2018"

[features]
default = []
default = ["duckdb"]
rusqlite-bundled = ["refinery-core/rusqlite-bundled"]
rusqlite = ["refinery-core/rusqlite"]
postgres = ["refinery-core/postgres"]
Expand All @@ -22,13 +25,19 @@ tokio-postgres = ["refinery-core/tokio-postgres"]
mysql_async = ["refinery-core/mysql_async"]
tiberius = ["refinery-core/tiberius"]
tiberius-config = ["refinery-core/tiberius", "refinery-core/tiberius-config"]
duckdb = ["refinery-core/duckdb"]

[dependencies]
refinery-core = { version = "0.8.11", path = "../refinery_core" }
refinery-macros = { version = "0.8.11", path = "../refinery_macros" }

[dev-dependencies]
barrel = { git = "https://github.com/jxs/barrel", features = ["sqlite3", "pg", "mysql", "mssql"] }
barrel = { git = "https://github.com/jxs/barrel", features = [
"sqlite3",
"pg",
"mysql",
"mssql",
] }
futures = "0.3"
assert_cmd = "2.0"
predicates = "3"
Expand Down
Loading