class DuckDB::Config
r.first.first # => 4
r = con.query(‘SELECT number FROM numbers ORDER BY number)
# number is ordered by descending.
con.query(’INSERT INTO numbers VALUES (2), (1), (4), (3)‘)
con.query(’CREATE TABLE numbers (number INTEGER)‘)
con = db.connect
db = DuckDB::Database.open(nil, config)<br>config = ’DESC’
config = DuckDB::Config.new
require ‘duckdb’
The DuckDB::Config encapsulates DuckDB Configuration.
def key_descriptions
configs['default_order'] # => "The order type used when none is specified ([ASC] or DESC)"
configs = DuckDB::Config.key_descriptions
the descriptions.
returns the Hash object of all available configuration names and
def key_descriptions @key_descriptions ||= (0...size).each_with_object({}) do |i, hash| key, description = key_description(i) hash[key] = description end end