Can somebody say me how to read an existent database with sqlite and
ruby? I want to know, how to get the connection and then close it.
Thanks
Can somebody say me how to read an existent database with sqlite and
ruby? I want to know, how to get the connection and then close it.
Thanks
On Thu, Jun 12, 2008 at 8:32 AM, Ignacio G. [email protected]
wrote:
Can somebody say me how to read an existent database with sqlite and
ruby? I want to know, how to get the connection and then close it.Thanks
![]()
Posted via http://www.ruby-forum.com/.
You could always use the SQLite gem (http://sqlite-ruby.rubyforge.org/)
–
“Hey brother Christian with your high and mighty errand, Your actions
speak
so loud, I can’t hear a word you’re saying.”
-Greg Graffin (Bad Religion)
Glen H. wrote:
On Thu, Jun 12, 2008 at 8:32 AM, Ignacio G. [email protected]
wrote:Can somebody say me how to read an existent database with sqlite and
ruby? I want to know, how to get the connection and then close it.Thanks
![]()
Posted via http://www.ruby-forum.com/.
You could always use the SQLite gem (http://sqlite-ruby.rubyforge.org/)
–
“Hey brother Christian with your high and mighty errand, Your actions
speak
so loud, I can’t hear a word you’re saying.”-Greg Graffin (Bad Religion)
I ve looked teh SQLite gem, but there don´t say how to get a connection
with an existent database. All time it´s creating the database… :(.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ignacio G. wrote:
|
| I ve looked teh SQLite gem, but there don´t say how to get a connection
| with an existent database. All time it´s creating the database… :(.
Then you didn’t look close enough. If the file/db doesn’t exist, it will
be created. Otherwise, the SQLite gem will use the existing database.
Phillip G.
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com
10 years ago I was so ignorant, I didn’t even know who the
Prime Minister of America was.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkhSgNoACgkQbtAgaoJTgL+OUwCfZg6AXyZsuxr0BIfr7pA2YerE
nDAAn0/KwODgsSEsOfyMVX1UcxXxPtC1
=De9U
-----END PGP SIGNATURE-----
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs