Class: ADBCArrow::Connection

Inherits:
Object
  • Object
show all
Includes:
ADBC::ConnectionOperations
Defined in:
lib/adbc/arrow-connection.rb

Instance Method Summary collapse

Methods included from ADBC::ConnectionOperations

#info, #ingest, #query

Instance Method Details

#get_info(codes) ⇒ Object



27
28
29
30
31
32
33
34
# File 'lib/adbc/arrow-connection.rb', line 27

def get_info(codes)
  reader = get_info_raw(codes)
  begin
    yield(reader.read_all)
  ensure
    reader.unref
  end
end

#get_info_rawObject



26
# File 'lib/adbc/arrow-connection.rb', line 26

alias_method :get_info_raw, :get_info

#open_statement(&block) ⇒ Object



22
23
24
# File 'lib/adbc/arrow-connection.rb', line 22

def open_statement(&block)
  Statement.open(self, &block)
end