Class: ArrowFlightSQL::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/arrow-flight-sql/client.rb

Instance Method Summary collapse

Instance Method Details

#prepare(query, options = nil) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/arrow-flight-sql/client.rb', line 21

def prepare(query, options=nil)
  statement = prepare_raw(query, options)
  if block_given?
    begin
      yield(statement)
    ensure
      statement.close(options) unless statement.closed?
    end
  else
    statement
  end
end

#prepare_rawObject



20
# File 'lib/arrow-flight-sql/client.rb', line 20

alias_method :prepare_raw, :prepare