01-14-2009, 05:36 AM | #16 | ||
Addict
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
|
Quote:
Quote:
|
||
01-14-2009, 06:47 AM | #17 | ||
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
Quote:
Last edited by hansel; 01-14-2009 at 06:49 AM. |
||
Advert | |
|
02-16-2009, 07:13 AM | #18 |
Addict
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
|
I've compiled libsqlite3-ruby1.8 for the iLiad. This allows you to talk to a sqlite3 database with Ruby.
Code:
root@ereader:/var/tmp$ irb irb(main):001:0> require "sqlite3" => true irb(main):002:0> db = SQLite3::Database.new("/tmp/test.db") => #<SQLite3::Database:0x402e2bac @handle=#<SWIG::TYPE_p_sqlite3:0x402daf9c>, @translator=nil, @statement_factory=SQLite3::Statement, @type_translation=false, @results_as_hash=false, @driver=#<SQLite3::Driver::Native::Driver:0x402e2b0c @busy_handler={}, @authorizer={}, @callback_data={}, @trace={}>, @transaction_active=false, @closed=false> irb(main):003:0> db.execute("SELECT * FROM test") do |row| irb(main):004:1* puts row[1] irb(main):005:1> end abc => nil |
Tags |
iliad, ruby |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free Book (Kindle) - Robin and Ruby | Susan Crealock | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 04-02-2010 06:46 AM |
Quick n' dirty Ruby Program: convert text files (Kindle - others?) | monojohnny | Reading and Management | 5 | 01-14-2009 08:32 AM |
iLiad dancing Ruby on Iliad | dzw! | iRex Developer's Corner | 8 | 08-29-2008 06:37 PM |
Walk, Charles Edmonds: The Paternoster Ruby (Illustrated). v1. 4 Aug 07 | HarryT | BBeB/LRF Books | 0 | 08-04-2007 06:03 AM |
Free Ruby programming e-book | TadW | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 01-13-2007 01:50 AM |