Guest User

Untitled

a guest
May 2nd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. # File : ../rb/acme_util.rb
  2. #
  3. # Source : ecg_ruby_util_rb.tpl
  4. #
  5. # Purpose : Connect to database, provide supporting classes for tables / views.
  6. # Modification History
  7. # When Who What
  8. # 09/07/2009 hubert Add MLS Views (F0040)
  9. # 10/07/2009 hubert Prefix MLS Views rather than use postfix (F0040)
  10. # 11/08/2009 hubert No need to have separate code for MLS views (F0161)
  11. require "rubygems"
  12. require "ruby_plsql"
  13. require 'active_record'
  14.  
  15. # Establish a connection to Oracle
  16. ActiveRecord::Base.establish_connection(
  17. :adapter => "oracle_enhanced",
  18. :host => "orcl",
  19. :username => "r042",
  20. :password => "r042")
  21.  
  22. # stick plsql connection on top of AR connection.
  23. plsql.connection = ActiveRecord::Base.connection.raw_connection
  24.  
  25. class EtlTranslation < ActiveRecord::Base
  26. end
Add Comment
Please, Sign In to add comment