tree: da574f6c9672d66af82810af5b33b302ea745d49 [path history] [tgz]
  1. lib/
  2. test/
  3. .gitignore
  4. Gemfile
  5. Rakefile
  6. README.md
  7. red-adbc.gemspec
ruby/README.md

Red ADBC

RubyGems: red-adbc

Red ADBC is the Ruby bindings of ADBC GLib.

How to install

If you want to install Red ADBC by Bundler, you can add the following to your Gemfile:

plugin "rubygems-requirements-system"

gem "red-adbc"

If you want to install Red ADBC by RubyGems, you can use the following command line:

$ gem install rubygems-requirements-system
$ gem install red-adbc

How to use

require "adbc"

ADBC::Database.open(driver: "adbc_driver_sqlite",
                    uri: ":memory:") do |database|
  database.connect do |connection|
    puts(connection.query("SELECT 1"))
  end
end