Changeset: f84f521c7ea8 for monetdb-ruby
URL: https://dev.monetdb.org/hg/monetdb-ruby/rev/f84f521c7ea8
Added Files:
        README.md
Branch: default
Log Message:

add README


diffs (39 lines):

diff --git a/README.md b/README.md
new file mode 100644
--- /dev/null
+++ b/README.md
@@ -0,0 +1,33 @@
+# MonetDB-Ruby
+
+Ruby driver for MonetDB
+
+## Installation
+
+First build a gem file starting from the given gemspec:
+
+```bash
+$ gem build ruby-monetdb-sql-0.2.gemspec
+```
+
+Then install the resulting gem with the command:
+
+```bash
+$ gem install --local ruby-monetdb-sql-0.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
\ No newline at end of file
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to