Class: PLSQL::OCIConnection::Cursor

Inherits:
Object
  • Object
show all
Defined in:
lib/plsql/oci_connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_cursorObject

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

#closeObject



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