Skip to content

Instantly share code, notes, and snippets.

@wyanez
Created October 29, 2011 00:05
Show Gist options
  • Save wyanez/1323879 to your computer and use it in GitHub Desktop.
Save wyanez/1323879 to your computer and use it in GitHub Desktop.
[ruby] Ejemplo de conexión Ruby y SQlite
# gem install sqlite3-ruby
require 'sqlite3'
db=SQLite3::Database.new('bdprueba.db');
db.execute("SELECT sqlite_version()") do |reg|
puts "SQLite version: #{reg[0]}"
end
db.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment