Sha256: b2106d6613454bf6beaf263d5dc197347e0f951aadd3614396c2b8675bd70ffe

Contents?: true

Size: 979 Bytes

Versions: 3

Compression:

Stored size: 979 Bytes

Contents

#include "ruby-duckdb.h"

VALUE mDuckDB;

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");

    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();
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
duckdb-1.0.0.2 ext/duckdb/duckdb.c
duckdb-1.0.0.1 ext/duckdb/duckdb.c
duckdb-1.0.0.0 ext/duckdb/duckdb.c