Class: PLSQL::OCIConnection::Cursor
- Inherits:
-
Object
- Object
- PLSQL::OCIConnection::Cursor
- Defined in:
- lib/plsql/connection.rb
Instance Attribute Summary collapse
-
#raw_cursor ⇒ Object
Returns the value of attribute raw_cursor.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #bind_param(key, value, type = nil, length = nil, in_out = 'IN') ⇒ Object
- #close ⇒ Object
- #exec(*bindvars) ⇒ Object
-
#initialize(raw_cur) ⇒ Cursor
constructor
A new instance of Cursor.
Constructor Details
#initialize(raw_cur) ⇒ Cursor
Returns a new instance of Cursor.
126 127 128 |
# File 'lib/plsql/connection.rb', line 126 def initialize(raw_cur) @raw_cursor = raw_cur end |
Instance Attribute Details
#raw_cursor ⇒ Object
Returns the value of attribute raw_cursor.
124 125 126 |
# File 'lib/plsql/connection.rb', line 124 def raw_cursor @raw_cursor end |
Instance Method Details
#[](key) ⇒ Object
138 139 140 |
# File 'lib/plsql/connection.rb', line 138 def [](key) raw_cursor[key] end |
#bind_param(key, value, type = nil, length = nil, in_out = 'IN') ⇒ Object
130 131 132 |
# File 'lib/plsql/connection.rb', line 130 def bind_param(key, value, type=nil, length=nil, in_out='IN') raw_cursor.bind_param(key, value, type, length) end |
#close ⇒ Object
142 143 144 |
# File 'lib/plsql/connection.rb', line 142 def close raw_cursor.close end |
#exec(*bindvars) ⇒ Object
134 135 136 |
# File 'lib/plsql/connection.rb', line 134 def exec(*bindvars) raw_cursor.exec(*bindvars) end |