From 41c57409f936c3dd6a1bef4d110a1d59904ef45f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 2 Jan 2022 12:15:06 -0500 Subject: [PATCH] Added immudb [skip ci] --- Appraisals | 4 ++++ README.md | 9 +++++++++ gemfiles/immudb.gemfile | 7 +++++++ gemfiles/immudb.gemfile.lock | 29 +++++++++++++++++++++++++++++ test/immudb_test.rb | 15 +++++++++++++++ 5 files changed, 64 insertions(+) create mode 100644 gemfiles/immudb.gemfile create mode 100644 gemfiles/immudb.gemfile.lock create mode 100644 test/immudb_test.rb diff --git a/Appraisals b/Appraisals index faec679..76aef5c 100644 --- a/Appraisals +++ b/Appraisals @@ -210,6 +210,10 @@ appraise "ignite_client" do gem "ignite-client" end +appraise "immudb" do + gem "immudb" +end + appraise "influxdb" do gem "influxdb" end diff --git a/README.md b/README.md index 53b88f4..606f113 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ Data Stores - [drill-sergeant](#drill-sergeant) - [elasticsearch](#elasticsearch) - [hiredis](#hiredis) +- [immudb](#immudb) - [influxdb](#influxdb) - [meilisearch](#meilisearch) - [mongo](#mongo) @@ -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 diff --git a/gemfiles/immudb.gemfile b/gemfiles/immudb.gemfile new file mode 100644 index 0000000..ad9d6fe --- /dev/null +++ b/gemfiles/immudb.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "minitest" +gem "immudb" diff --git a/gemfiles/immudb.gemfile.lock b/gemfiles/immudb.gemfile.lock new file mode 100644 index 0000000..1b32f8b --- /dev/null +++ b/gemfiles/immudb.gemfile.lock @@ -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 diff --git a/test/immudb_test.rb b/test/immudb_test.rb new file mode 100644 index 0000000..556e799 --- /dev/null +++ b/test/immudb_test.rb @@ -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