Sha256: d9e26bfad4af3ee789910e4cb95fe02fb29cc33231a0a072cfc9edd029502d89

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

require 'mkmf'

dir_config('duckdb')

raise 'duckdb library is not found. Install duckdb library file and header file.' unless have_library('duckdb')

raise 'duckdb >= 0.2.9 is required. Install duckdb >= 0.2.9' unless have_func('duckdb_value_is_null', 'duckdb.h')

if have_func('duckdb_nparams(NULL)', 'duckdb.h')
  $defs << '-DHAVE_DUCKDB_NPARAMS_029'
elsif have_func('duckdb_nparams(NULL, NULL)', 'duckdb.h')
  $defs << '-DHAVE_DUCKDB_NPARAMS_028'
end

have_func('duckdb_appender_create', 'duckdb.h')
have_func('duckdb_free', 'duckdb.h')

have_func('duckdb_create_config', 'duckdb.h')
have_func('duckdb_open_ext', 'duckdb.h')
have_func('duckdb_prepare_error', 'duckdb.h')

have_func('duckdb_append_date', 'duckdb.h')
have_func('duckdb_append_interval', 'duckdb.h')
have_func('duckdb_append_time', 'duckdb.h')
have_func('duckdb_append_timestamp', 'duckdb.h')
have_func('duckdb_append_hugeint', 'duckdb.h')

have_func('duckdb_bind_date', 'duckdb.h')
have_func('duckdb_bind_time', 'duckdb.h')
have_func('duckdb_bind_timestamp', 'duckdb.h')
have_func('duckdb_bind_interval', 'duckdb.h')

create_makefile('duckdb/duckdb_native')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
duckdb-0.3.2.0 ext/duckdb/extconf.rb