Class: DBI::DBD::OCI8::Driver
- Includes:
- Util
- Defined in:
- lib/dbd/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.
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_user ⇒ Object
external OS authentication (contributed by Dan Fitch)
177 178 179 |
# File 'lib/dbd/OCI8.rb', line 177 def default_user [nil, nil] end |