ext/duckdb/extconf.rb in duckdb-1.0.0.2 vs ext/duckdb/extconf.rb in duckdb-1.1.0.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
require 'mkmf'
-DUCKDB_REQUIRED_VERSION = '0.9.0'
+DUCKDB_REQUIRED_VERSION = '0.10.0'
def check_duckdb_header(header, version)
found = find_header(
header,
'/opt/homebrew/include',
@@ -54,22 +54,19 @@
end
dir_config('duckdb')
check_duckdb_header('duckdb.h', DUCKDB_REQUIRED_VERSION)
-check_duckdb_library('duckdb', 'duckdb_bind_parameter_index', DUCKDB_REQUIRED_VERSION)
+check_duckdb_library('duckdb', 'duckdb_appender_column_count', DUCKDB_REQUIRED_VERSION)
-# check duckdb >= 0.9.0
-have_func('duckdb_bind_parameter_index', 'duckdb.h')
-
# check duckdb >= 0.10.0
have_func('duckdb_appender_column_count', 'duckdb.h')
# check duckdb >= 1.0.0
have_func('duckdb_fetch_chunk', 'duckdb.h')
-# duckdb_parameter_name in duckdb <= 0.9.1 is not found on Windows.
-have_func('duckdb_parameter_name', 'duckdb.h')
+# check duckdb >= 1.1.0
+have_func('duckdb_result_error_type', 'duckdb.h')
$CFLAGS << ' -DDUCKDB_API_NO_DEPRECATED' if ENV['DUCKDB_API_NO_DEPRECATED']
create_makefile('duckdb/duckdb_native')