Class: DBI::DBD::OCI8::Driver
- Inherits:
-
BaseDriver
- Object
- BaseDriver
- DBI::DBD::OCI8::Driver
- Includes:
- Util
- Defined in:
- lib/DBD/OCI8/OCI8.rb
Overview
:nodoc:
Constant Summary
Constants included from Util
Instance Method Summary collapse
- #connect(dbname, user, auth, attr) ⇒ Object
-
#default_user ⇒ Object
external OS authentication (contributed by Dan Fitch).
-
#initialize ⇒ Driver
constructor
A new instance of Driver.
Methods included from Util
Constructor Details
#initialize ⇒ Driver
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_user ⇒ Object
external OS authentication (contributed by Dan Fitch)
151 152 153 |
# File 'lib/DBD/OCI8/OCI8.rb', line 151 def default_user [nil, nil] end |