#include "ruby-duckdb.h" VALUE mDuckDB; VALUE PositiveInfinity; VALUE NegativeInfinity; static VALUE duckdb_s_library_version(VALUE self); /* * call-seq: * DuckDB.library_version -> String * * Returns the version of the DuckDB library. * * DuckDB.library_version # => "0.2.0" */ static VALUE duckdb_s_library_version(VALUE self) { return rb_str_new2(duckdb_library_version()); } void Init_duckdb_native(void) { mDuckDB = rb_define_module("DuckDB"); PositiveInfinity = rb_str_new_literal("infinity"); NegativeInfinity = rb_str_new_literal("-infinity"); rb_define_singleton_method(mDuckDB, "library_version", duckdb_s_library_version, 0); rbduckdb_init_duckdb_error(); rbduckdb_init_duckdb_database(); rbduckdb_init_duckdb_connection(); rbduckdb_init_duckdb_result(); rbduckdb_init_duckdb_column(); rbduckdb_init_duckdb_prepared_statement(); rbduckdb_init_duckdb_pending_result(); rbduckdb_init_duckdb_blob(); rbduckdb_init_duckdb_appender(); rbduckdb_init_duckdb_config(); rbduckdb_init_duckdb_converter(); rbduckdb_init_duckdb_extracted_statements(); }