Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do we perform JNDI operation in Ruby

 
Dhayalan Karunakaran
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rusty Shackleford
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic