Skip to content

Commit

Permalink
Implement Redis storage (gluesql#1396)
Browse files Browse the repository at this point in the history
Implement RedisStorage with `Store`, `StoreMut`, `AlterTable` and `Metadata` trait impl.

Co-authored-by: Gioh Kim <gurugio@linecorp.com>
  • Loading branch information
gurugio and Gioh Kim committed Nov 11, 2023
1 parent befffa8 commit 8a2cb5b
Show file tree
Hide file tree
Showing 15 changed files with 1,724 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
toolchain: ${{ steps.rust-toolchain.outputs.toolchain }}
- uses: Swatinem/rust-cache@v2
- run: rustup component add llvm-tools-preview
- name: Redis in GitHub Actions
uses: supercharge/redis-github-action@1.7.0
with:
redis-version: 6
- name: Install grcov
uses: actions-rs/install@v0.1
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Redis in GitHub Actions
uses: supercharge/redis-github-action@1.7.0
with:
redis-version: 6
- run: |
cargo test --all-features --lib --bins --tests --examples --verbose -- --skip sled_transaction_timeout
cargo test sled_transaction_timeout --verbose -- --test-threads=1
Expand Down
180 changes: 176 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ csv-storage = { package = "gluesql-csv-storage", path = "./storages/csv-storage"
composite-storage = { package = "gluesql-composite-storage", path = "./storages/composite-storage", version = "0.14.0" }
web-storage = { package = "gluesql-web-storage", path = "./storages/web-storage", version = "0.14.0" }
idb-storage = { package = "gluesql-idb-storage", path = "./storages/idb-storage", version = "0.14.0" }
redis-storage = { package = "gluesql-redis-storage", path = "./storages/redis-storage", version = "0.14.0" }
utils = { package = "gluesql-utils", path = "./utils", version = "0.14.0" }
26 changes: 26 additions & 0 deletions storages/redis-storage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "gluesql-redis-storage"
authors = [
"Gioh Kim <gurugio@gmail.com>",
"Taehoon Moon <taehoon.moon@outlook.com>",
]
version.workspace = true
edition.workspace = true
description.workspace = true
license.workspace = true
repository.workspace = true
documentation.workspace = true

[dependencies]
gluesql-core.workspace = true
async-trait = "0.1"
serde = { version = "1", features = ["derive"] }
redis = "0.23.3"
serde_json = "1.0.105"
chrono = { version = "0.4.31", features = ["serde", "wasmbind"] }
futures = "0.3"

[dev-dependencies]
test-suite.workspace = true
tokio = { version = "1", features = ["rt", "macros"] }
toml = "0.8.6"

0 comments on commit 8a2cb5b

Please sign in to comment.