Class: DBI::DBD::OCI8::Driver

Inherits:
BaseDriver
  • Object
show all
Includes:
Util
Defined in:
lib/DBD/OCI8/OCI8.rb

Overview

:nodoc:

Constant Summary

Constants included from Util

Util::ERROR_MAP

Instance Method Summary collapse

Methods included from Util

#raise_dbierror

Constructor Details

#initializeDriver

Returns a new instance of Driver.



145
146
147
# File 'lib/DBD/OCI8/OCI8.rb', line 145

def initialize
  super(USED_DBD_VERSION)
end

Instance Method Details

#connect(dbname, user, auth, attr) ⇒ Object



155
156
157
158
159
160
161
# File 'lib/DBD/OCI8/OCI8.rb', line 155

def connect( dbname, user, auth, attr )
  handle = ::OCI8.new(user, auth, dbname, attr['Privilege'])
  handle.non_blocking = true if attr['NonBlocking']
  return Database.new(handle, attr)
rescue OCIException => err
  raise_dbierror(err)
end

#default_userObject

external OS authentication (contributed by Dan Fitch)



151
152
153
# File 'lib/DBD/OCI8/OCI8.rb', line 151

def default_user
  [nil, nil]
end