Module: ADBC::StatementOperations

Included in:
Statement, ADBCArrow::Statement
Defined in:
lib/adbc/statement-operations.rb

Instance Method Summary collapse

Instance Method Details

#ingest(table_name, values, mode: :create) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/adbc/statement-operations.rb', line 20

def ingest(table_name, values, mode: :create)
  self.ingest_target_table = table_name
  self.ingest_mode = mode
  bind(values) do
    execute(need_result: false)
  end
end

#query(sql, &block) ⇒ Object



28
29
30
31
# File 'lib/adbc/statement-operations.rb', line 28

def query(sql, &block)
  self.sql_query = sql
  execute(&block)
end