GeeCON Prague 2014*
The moose likes Ruby and the fly likes How do we perform JNDI operation in Ruby Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » Ruby
Bookmark "How do we perform JNDI operation in Ruby" Watch "How do we perform JNDI operation in Ruby" New topic
Author

How do we perform JNDI operation in Ruby

Dhayalan Karunakaran
Greenhorn

Joined: Jun 11, 2008
Posts: 9
In Java we have JNDI that is used to connect the database,how do we perform JNDI operation in Ruby .do ruby have the similar functionality of JNDI or not.


I.J.K.Dhayalan MCA,<br />Software Engineer.
Rusty Shackleford
Ranch Hand

Joined: Jan 03, 2006
Posts: 490
There is DBI and ActiveRecord. I am not sure if there are any other high level ways of connecting to a database in Ruby. DBI is a wrapper around DB drivers and ActiveRecord is similar except it provides a whole lot of functionality. It is part of Rails, but you don't have to use rais to use AR. What I like about AR is that in most cases you never have to write SQL code, which I despise.


"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
 
GeeCON Prague 2014
 
subject: How do we perform JNDI operation in Ruby