view README.md @ 35:fedf9356cc5c default tip

Update README.md
author Mitchell Weggemans <mitchell.weggemans@monetdbsolutions.com>
date Tue, 01 Jun 2021 15:13:27 +0200 (2021-06-01)
parents 16bb6d852171
children
line wrap: on
line source
# MonetDB-Ruby

Ruby driver for MonetDB

## Installation

First build a gem file starting from the given gemspec:

```bash
 gem build monetdb-sql.gemspec
```
Or:
```bash
make
```

Then install the resulting gem with the command:

```bash
 gem install --local monetdb-sql-1.2.gem
```

## Example
```ruby
require_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
end
```

A more extensive example can be found in /lib/example.rb