Skip to content

Commit

Permalink
Added immudb [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jan 2, 2022
1 parent 1ba6eed commit 41c5740
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ appraise "ignite_client" do
gem "ignite-client"
end

appraise "immudb" do
gem "immudb"
end

appraise "influxdb" do
gem "influxdb"
end
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Data Stores
- [drill-sergeant](#drill-sergeant)
- [elasticsearch](#elasticsearch)
- [hiredis](#hiredis)
- [immudb](#immudb)
- [influxdb](#influxdb)
- [meilisearch](#meilisearch)
- [mongo](#mongo)
Expand Down Expand Up @@ -574,6 +575,14 @@ Raises
- `Errno::ETIMEDOUT` on connect timeout
- `Errno::EAGAIN` on read timeout

### immudb

```ruby
Immudb::Client.new(host, timeout: 1)
```

Raises `GRPC::DeadlineExceeded`

### influxdb

```ruby
Expand Down
7 changes: 7 additions & 0 deletions gemfiles/immudb.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "minitest"
gem "immudb"
29 changes: 29 additions & 0 deletions gemfiles/immudb.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
GEM
remote: https://rubygems.org/
specs:
appraisal (2.4.1)
bundler
rake
thor (>= 0.14.0)
google-protobuf (3.19.1-x86_64-darwin)
googleapis-common-protos-types (1.3.0)
google-protobuf (~> 3.14)
grpc (1.42.0-x86_64-darwin)
google-protobuf (~> 3.18)
googleapis-common-protos-types (~> 1.0)
immudb (0.1.0)
grpc
minitest (5.15.0)
rake (13.0.6)
thor (1.1.0)

PLATFORMS
ruby

DEPENDENCIES
appraisal
immudb
minitest

BUNDLED WITH
2.2.32
15 changes: 15 additions & 0 deletions test/immudb_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require_relative "test_helper"

class ImmudbTest < Minitest::Test
def test_connect
assert_timeout(GRPC::DeadlineExceeded) do
Immudb::Client.new(host: connect_host, timeout: 1).list_databases
end
end

def test_read
assert_timeout(GRPC::DeadlineExceeded) do
Immudb::Client.new(host: read_host, port: read_port, timeout: 1).list_databases
end
end
end

0 comments on commit 41c5740

Please sign in to comment.