Class: PLSQL::OCIConnection::Cursor
- Inherits:
-
Object
- Object
- PLSQL::OCIConnection::Cursor
- Defined in:
- lib/plsql/oci_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.
62 63 64 |
# File 'lib/plsql/oci_connection.rb', line 62 def initialize(raw_cur) @raw_cursor = raw_cur end |
Instance Attribute Details
#raw_cursor ⇒ Object
Returns the value of attribute raw_cursor.
60 61 62 |
# File 'lib/plsql/oci_connection.rb', line 60 def raw_cursor @raw_cursor end |
Instance Method Details
#[](key) ⇒ Object
74 75 76 |
# File 'lib/plsql/oci_connection.rb', line 74 def [](key) raw_cursor[key] end |
#bind_param(key, value, type = nil, length = nil, in_out = 'IN') ⇒ Object
66 67 68 |
# File 'lib/plsql/oci_connection.rb', line 66 def bind_param(key, value, type=nil, length=nil, in_out='IN') raw_cursor.bind_param(key, value, type, length) end |
#close ⇒ Object
78 79 80 |
# File 'lib/plsql/oci_connection.rb', line 78 def close raw_cursor.close end |
#exec(*bindvars) ⇒ Object
70 71 72 |
# File 'lib/plsql/oci_connection.rb', line 70 def exec(*bindvars) raw_cursor.exec(*bindvars) end |