ActiveRecord connection adapters

December 22, 2008 by pedro mota

…because of Camping::Models I’m using ActiveRecord Ruby implementation gem. Because source code is pretty well documented I maintain an opened xterm to check how things are done. Since I’m not using SQLite but PostgreSQL, i had to dig for the other parameters for the connection and I noticed AR has now connectors for severall DMBS:\n\n$ cat /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record.rb\n[…]\nunless defined?(RAILS_CONNECTION_ADAPTERS)\n  RAILS_CONNECTION_ADAPTERS = %w( mysql postgresql sqlite firebird sqlserver db2 oracle sybase openbase frontbase )\nend\n[…]

© 2018 | Follow on Twitter | pedro mg & Hugo