Class: PLSQL::OCIConnection::Cursor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_cursorObject

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

#closeObject



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