method
new
rails latest stable - Class:
OCI8AutoRecover
new(config, factory = OracleConnectionFactory.new)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/oracle_adapter.rb, line 617
def initialize(config, factory = OracleConnectionFactory.new)
@active = true
@username, @password, @database, = config[:username], config[:password], config[:database]
@async = config[:allow_concurrency]
@prefetch_rows = config[:prefetch_rows] || 100
@cursor_sharing = config[:cursor_sharing] || 'similar'
@factory = factory
@connection = @factory.new_connection @username, @password, @database, @async, @prefetch_rows, @cursor_sharing
super @connection
end