J
Jamis Buck
The "Og" release!
http://rubyforge.org/projects/sqlite-ruby
http://sqlite-ruby.rubyforge.org/sqlite3
http://docs.jamisbuck.org/read/book/3
This version supports a new Database#query method to make it easier to
do external row-by-row iteration of result sets:
result = db.query( "select name, gender from person" )
puts "%30 %10" % result.columns
while row = result.next
puts "%30 %10" % row
end
result.close
Of course, you can do it with a block and have the result set
implicitly closed, as well.
Other fixes/changes:
* Solaris is now supported by the DL driver.
* Added three missing exception classes
* Exceptions now have a 'code' attribute for querying the numeric
error value.
* If the 'Native' driver is not found, opening a second database
resulted in a NameError.
Enjoy!
http://rubyforge.org/projects/sqlite-ruby
http://sqlite-ruby.rubyforge.org/sqlite3
http://docs.jamisbuck.org/read/book/3
This version supports a new Database#query method to make it easier to
do external row-by-row iteration of result sets:
result = db.query( "select name, gender from person" )
puts "%30 %10" % result.columns
while row = result.next
puts "%30 %10" % row
end
result.close
Of course, you can do it with a block and have the result set
implicitly closed, as well.
Other fixes/changes:
* Solaris is now supported by the DL driver.
* Added three missing exception classes
* Exceptions now have a 'code' attribute for querying the numeric
error value.
* If the 'Native' driver is not found, opening a second database
resulted in a NameError.
Enjoy!