Module: ArrowDuckDB::ArrowableQuery
- Included in:
- DuckDB::Connection
- Defined in:
- lib/arrow-duckdb/connection.rb
Instance Method Summary collapse
Instance Method Details
#query(sql, *args, output: nil) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/arrow-duckdb/connection.rb', line 17 def query(sql, *args, output: nil) return super(sql, *args) if output != :arrow return query_sql_arrow(sql) if args.empty? stmt = DuckDB::PreparedStatement.new(self, sql) args.each_with_index do |arg, i| stmt.bind(i + 1, arg) end stmt.execute_arrow end |