ext/duckdb/extconf.rb in duckdb-0.3.2.0 vs ext/duckdb/extconf.rb in duckdb-0.3.3.0

- old
+ new

@@ -4,30 +4,17 @@ 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 +# ducdb >= 0.3.3 if duckdb_append_data_chunk() is defined. +have_func('duckdb_append_data_chunk', 'duckdb.h') -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')