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

Inherits:
BaseDriver
  • Object
show all
Includes:
Util
Defined in:
lib/dbd/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.



171
172
173
# File 'lib/dbd/OCI8.rb', line 171

def initialize
  super(USED_DBD_VERSION)
end

Instance Method Details

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



181
182
183
184
185
186
187
# File 'lib/dbd/OCI8.rb', line 181

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)



177
178
179
# File 'lib/dbd/OCI8.rb', line 177

def default_user
  [nil, nil]
end