Skip to content
Closed
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
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,28 @@ jobs:
toolchain: ${{ matrix.rust }}
- run: cd refinery && cargo test --features mysql_async --test mysql_async -- --test-threads 1

test-clickhouse:
name: Test clickhouse
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, nightly, 1.56.0]
services:
clickhouse:
image: bitnami/clickhouse:22.9.4
ports:
- 9000:9000
env:
CLICKHOUSE_ADMIN_USER: default
ALLOW_EMPTY_PASSWORD: yes

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- run: cd refinery && cargo test --features clickhouse --test clickhouse -- --test-threads 1

test-tiberius:
name: Test tiberius
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion refinery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ categories = ["database"]
edition = "2018"

[features]
default = []
default = ["clickhouse"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it default?

rusqlite-bundled = ["refinery-core/rusqlite-bundled"]
rusqlite = ["refinery-core/rusqlite"]
postgres = ["refinery-core/postgres"]
mysql = ["refinery-core/mysql", "refinery-core/flate2"]
tokio-postgres = ["refinery-core/tokio-postgres"]
mysql_async = ["refinery-core/mysql_async"]
clickhouse = ["refinery-core/clickhouse"]
tiberius = ["refinery-core/tiberius"]
tiberius-config = ["refinery-core/tiberius", "refinery-core/tiberius-config"]

Expand Down
Loading