Ruby driver for MonetDB
First build a gem file starting from the given gemspec:
gem build monetdb-sql.gemspecOr:
makeThen install the resulting gem with the command:
gem install --local monetdb-sql-1.2.gemrequire_relative 'MonetDB'
conn = MonetDB.new
conn.connect(user = "monetdb", passwd = "monetdb", lang = "sql", host="127.0.0.1", port = 50000, database_connection_name = "demo", auth_type = "SHA1")
result =conn.query("SELECT 1")
result.each_record do |record|
puts record
endA more extensive example can be found in /lib/example.rb