Sha256: c058c32126c97cc94a89b0c89d80fc25c3987791b3817df7766be9d9301136cf

Contents?: true

Size: 724 Bytes

Versions: 4

Compression:

Stored size: 724 Bytes

Contents

#include "ruby-duckdb.h"

VALUE mDuckDB;

#ifdef HAVE_DUCKDB_H_GE_V060
static VALUE duckdb_s_library_version(VALUE self);
#endif

#ifdef HAVE_DUCKDB_H_GE_V060
static VALUE duckdb_s_library_version(VALUE self) {
  return rb_str_new2(duckdb_library_version());
}
#endif

void
Init_duckdb_native(void) {
    mDuckDB = rb_define_module("DuckDB");

#ifdef HAVE_DUCKDB_H_GE_V060
    rb_define_singleton_method(mDuckDB, "library_version", duckdb_s_library_version, 0);
#endif

    init_duckdb_error();
    init_duckdb_database();
    init_duckdb_connection();
    init_duckdb_result();
    init_duckdb_column();
    init_duckdb_prepared_statement();
    init_duckdb_blob();
    init_duckdb_appender();
    init_duckdb_config();

}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
duckdb-0.8.0 ext/duckdb/duckdb.c
duckdb-0.7.1 ext/duckdb/duckdb.c
duckdb-0.7.0 ext/duckdb/duckdb.c
duckdb-0.6.1 ext/duckdb/duckdb.c