How to get the underlying database connection out


Category:
Scripts
Ruby
Requirements:
Seller:
Price:
-
System:
Rating:
4.4
License:

Description - How to get the underlying database connection out



Problem: you want to get at the underlying database connection object, e.g. so you can do something like create_function or create_aggregate on a SQLite database. You try ActiveRecord::Base.connection but that just gives you the Rails connection adapter, not the underlying database connection.



More in Ruby-How to get the underlying database connection out

Create Database Connection Underlying Database Connection