packages feed

duckdb-ffi-2.0.0.0: cbits/duckdb_extension_v2.h

//===----------------------------------------------------------------------===//
//
//                         DuckDB
//
// duckdb_extension_v2.h
//
//
//===----------------------------------------------------------------------===//
//
// !!!!!!!
// WARNING: this file is autogenerated, manual changes will be overwritten
// !!!!!!!

// WARNING: this API is not yet stable, meaning it is only guaranteed to work for this specific DuckDB version.

#pragma once

// An extension targets either the V1 or the V2 C API, never both.
#ifdef DUCKDB_EXTENSION_HEADER_VERSION
#error "duckdb_extension.h and duckdb_extension_v2.h cannot both be included: pick one C API version"
#endif
#define DUCKDB_EXTENSION_HEADER_VERSION 2

#include "duckdb_v2.h"

//===--------------------------------------------------------------------===//
// Util Macros
//===--------------------------------------------------------------------===//

#ifdef __cplusplus
#define DUCKDB_EXTENSION_EXTERN_C_GUARD_OPEN  extern "C" {
#define DUCKDB_EXTENSION_EXTERN_C_GUARD_CLOSE }
#else
#define DUCKDB_EXTENSION_EXTERN_C_GUARD_OPEN
#define DUCKDB_EXTENSION_EXTERN_C_GUARD_CLOSE
#endif

#define DUCKDB_EXTENSION_GLUE_HELPER(x, y) x##y
#define DUCKDB_EXTENSION_GLUE(x, y)        DUCKDB_EXTENSION_GLUE_HELPER(x, y)
#define DUCKDB_EXTENSION_STR_HELPER(x)     #x
#define DUCKDB_EXTENSION_STR(x)            DUCKDB_EXTENSION_STR_HELPER(x)
#define DUCKDB_EXTENSION_SEMVER_STRING(major, minor, patch)                                                            \
	"v" DUCKDB_EXTENSION_STR_HELPER(major) "." DUCKDB_EXTENSION_STR_HELPER(minor) "." DUCKDB_EXTENSION_STR_HELPER(patch)

//===--------------------------------------------------------------------===//
// Versioning
//===--------------------------------------------------------------------===//
//! Set version to latest if no explicit version is defined

#if !defined(DUCKDB_EXTENSION_API_VERSION_MAJOR) && !defined(DUCKDB_EXTENSION_API_VERSION_MINOR) &&                    \
    !defined(DUCKDB_EXTENSION_API_VERSION_PATCH)
#define DUCKDB_EXTENSION_API_VERSION_MAJOR 2
#define DUCKDB_EXTENSION_API_VERSION_MINOR 0
#define DUCKDB_EXTENSION_API_VERSION_PATCH 0
#elif !(defined(DUCKDB_EXTENSION_API_VERSION_MAJOR) && defined(DUCKDB_EXTENSION_API_VERSION_MINOR) &&                  \
        defined(DUCKDB_EXTENSION_API_VERSION_PATCH))
#error "either all or none of the  DUCKDB_EXTENSION_API_VERSION_ defines should be defined"
#endif

//! The version string passed to DuckDB on extension load. The major selects the V2 API family; for extensions pinned
//! to an exact DuckDB version (C_STRUCT_UNSTABLE) the loader reads only the major and ignores the rest.
#define DUCKDB_EXTENSION_API_VERSION_STRING                                                                            \
	DUCKDB_EXTENSION_SEMVER_STRING(DUCKDB_EXTENSION_API_VERSION_MAJOR, DUCKDB_EXTENSION_API_VERSION_MINOR,             \
	                               DUCKDB_EXTENSION_API_VERSION_PATCH)

#if DUCKDB_EXTENSION_API_VERSION_MAJOR != 2
#error "This version of the extension API header only supports API VERSION v2.x.x"
#endif

// No V2 function has been stabilized yet, so without the unstable surface the function pointer struct would be empty.
#if !DUCKDB_V2_API_ALLOW_UNSTABLE
#error                                                                                                                 \
    "the V2 C API has no stable surface yet: build with build_loadable_extension_capi_unstable or build_static_extension_capi_unstable, which tie the extension to this DuckDB version"
#endif

//===--------------------------------------------------------------------===//
// Function pointer struct
//===--------------------------------------------------------------------===//
typedef struct {
	// capigen:begin appended
#if DUCKDB_V2_API_ALLOW_UNSTABLE
	DUCKDB_V2_ERROR(*duckdb_v2_arena_allocate)
	(duckdb_v2_arena_handle arena, idx_t byte_len, uint8_t **out_ptr, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_bignum_decode)
	(const uint8_t *in_data, idx_t in_length, uint8_t *out_data, idx_t out_capacity, idx_t *out_length,
	 bool *out_is_negative, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_bignum_encode)
	(const uint8_t *in_data, idx_t in_length, bool is_negative, uint8_t *out_data, idx_t out_capacity,
	 idx_t *out_length, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_append)
	(duckdb_v2_column_data_collection_handle collection, duckdb_v2_column_data_collection_append_state_handle state,
	 duckdb_v2_data_chunk_handle chunk, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_append_state_create)
	(duckdb_v2_column_data_collection_handle collection,
	 duckdb_v2_column_data_collection_append_state_handle *out_state, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_append_state_destroy)
	(duckdb_v2_column_data_collection_append_state_handle *state);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_combine)
	(duckdb_v2_column_data_collection_handle target, duckdb_v2_column_data_collection_handle *source,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_create)
	(duckdb_v2_factory_handle factory, const duckdb_v2_logical_type_handle *types_array, idx_t types_count,
	 duckdb_v2_column_data_collection_handle *out_collection, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_column_data_collection_destroy)(duckdb_v2_column_data_collection_handle *collection);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_reset)
	(duckdb_v2_column_data_collection_handle collection, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_row_count)
	(duckdb_v2_column_data_collection_handle collection, idx_t *out_row_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_scan)
	(duckdb_v2_column_data_collection_handle collection,
	 duckdb_v2_column_data_collection_shared_scan_state_handle shared_state,
	 duckdb_v2_column_data_collection_worker_scan_state_handle worker_state, duckdb_v2_data_chunk_handle out_chunk,
	 bool *did_produce_chunk, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_shared_scan_state_create)
	(duckdb_v2_column_data_collection_handle collection,
	 duckdb_v2_column_data_collection_shared_scan_state_handle *out_state, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_shared_scan_state_destroy)
	(duckdb_v2_column_data_collection_shared_scan_state_handle *state);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_worker_scan_state_create)
	(duckdb_v2_column_data_collection_handle collection,
	 duckdb_v2_column_data_collection_worker_scan_state_handle *out_state, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_worker_scan_state_destroy)
	(duckdb_v2_column_data_collection_worker_scan_state_handle *state);
	DUCKDB_V2_ERROR(*duckdb_v2_config_get_option_by_index)
	(duckdb_v2_config_handle config, idx_t index, duckdb_v2_option_handle *out_option,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_config_get_option_by_name)
	(duckdb_v2_config_handle config, const duckdb_v2_identifier_t *name, duckdb_v2_option_handle *out_option,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_config_get_option_count)
	(duckdb_v2_config_handle config, idx_t *out_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_create)
	(duckdb_v2_instance_handle instance, duckdb_v2_connection_handle *out_conn, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_connection_destroy)(duckdb_v2_connection_handle *conn);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_interrupt)
	(duckdb_v2_connection_handle conn, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_progress_get)
	(duckdb_v2_connection_handle conn, double *out_percentage, uint64_t *out_rows_processed,
	 uint64_t *out_total_rows_to_process, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_data_chunk_copy)
	(duckdb_v2_factory_handle factory, duckdb_v2_data_chunk_handle chunk, duckdb_v2_data_chunk_handle *out_chunk,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_data_chunk_create)
	(duckdb_v2_factory_handle factory, const duckdb_v2_logical_type_handle *types, idx_t column_count,
	 duckdb_v2_data_chunk_handle *out_chunk, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_data_chunk_destroy)(duckdb_v2_data_chunk_handle *chunk);
	DUCKDB_V2_ERROR(*duckdb_v2_data_chunk_get_size)
	(duckdb_v2_data_chunk_handle chunk, idx_t *out_size, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_data_chunk_get_vector)
	(duckdb_v2_data_chunk_handle chunk, idx_t index, duckdb_v2_vector_handle *out_vector,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_data_chunk_get_vector_count)
	(duckdb_v2_data_chunk_handle chunk, idx_t *out_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_environment_create)
	(duckdb_v2_environment_handle *out_env, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_environment_destroy)(duckdb_v2_environment_handle *env);
	DUCKDB_V2_ERROR(*duckdb_v2_environment_get_instance_count)
	(duckdb_v2_environment_handle env, idx_t *out_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_error_info_destroy)(duckdb_v2_error_info_handle *info);
	DUCKDB_V2_ERROR (*duckdb_v2_error_info_get_code)(duckdb_v2_error_info_handle info, DUCKDB_V2_ERROR *out_code);
	DUCKDB_V2_ERROR (*duckdb_v2_error_info_get_raw_text)(duckdb_v2_error_info_handle info, duckdb_v2_str *out_raw_text);
	DUCKDB_V2_ERROR (*duckdb_v2_error_info_get_text)(duckdb_v2_error_info_handle info, duckdb_v2_str *out_text);
	DUCKDB_V2_ERROR (*duckdb_v2_error_info_set_code)(duckdb_v2_error_info_handle info, DUCKDB_V2_ERROR code);
	DUCKDB_V2_ERROR (*duckdb_v2_error_info_set_text)(duckdb_v2_error_info_handle info, const duckdb_v2_str *text);
	DUCKDB_V2_ERROR(*duckdb_v2_factory_create_type_from_id)
	(duckdb_v2_factory_handle factory, DUCKDB_V2_LOGICAL_TYPE_ID type_id, const duckdb_v2_identifier_t *param_names,
	 const duckdb_v2_value_handle *param_values, idx_t param_count, duckdb_v2_logical_type_handle *out_type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_factory_create_type_from_name)
	(duckdb_v2_factory_handle factory, duckdb_v2_qname_handle name, const duckdb_v2_identifier_t *param_names,
	 const duckdb_v2_value_handle *param_values, idx_t param_count, duckdb_v2_logical_type_handle *out_type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_factory_create_type_from_text)
	(duckdb_v2_factory_handle factory, const duckdb_v2_str *text, duckdb_v2_logical_type_handle *out_type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_factory_create_type_with_alias)
	(duckdb_v2_factory_handle factory, duckdb_v2_logical_type_handle base_type,
	 const duckdb_v2_identifier_t *alias_name, duckdb_v2_logical_type_handle *out_type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_attach)
	(duckdb_v2_instance_handle instance, const duckdb_v2_identifier_t *name, const duckdb_v2_str *path,
	 duckdb_v2_attach_options_handle options, bool make_default, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_create)
	(duckdb_v2_environment_handle env, duckdb_v2_instance_handle *out_instance, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_create_with_options)
	(duckdb_v2_environment_handle env, const duckdb_v2_str *option_names, const duckdb_v2_str *option_values,
	 idx_t option_count, duckdb_v2_instance_handle *out_instance, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_instance_destroy)(duckdb_v2_instance_handle *instance);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_detach)
	(duckdb_v2_instance_handle instance, const duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_library_version)(duckdb_v2_str *out_version, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_logical_type_copy)
	(duckdb_v2_logical_type_handle type, duckdb_v2_logical_type_handle *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_logical_type_destroy)(duckdb_v2_logical_type_handle *type);
	DUCKDB_V2_ERROR(*duckdb_v2_logical_type_get_id)
	(duckdb_v2_logical_type_handle type, DUCKDB_V2_LOGICAL_TYPE_ID *out_id, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_logical_type_get_name)
	(duckdb_v2_logical_type_handle type, duckdb_v2_identifier_t *out_name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_logical_type_get_param)
	(duckdb_v2_logical_type_handle type, idx_t index, duckdb_v2_identifier_t *out_name,
	 duckdb_v2_value_handle *out_value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_logical_type_get_param_count)
	(duckdb_v2_logical_type_handle type, idx_t *out_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_logical_type_is_equal)
	(duckdb_v2_logical_type_handle left, duckdb_v2_logical_type_handle right, bool *result,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_logical_type_to_text)
	(duckdb_v2_logical_type_handle type, char *out_text, idx_t out_capacity, idx_t *out_length,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_option_destroy)(duckdb_v2_option_handle *option);
	DUCKDB_V2_ERROR(*duckdb_v2_option_get_alias)
	(duckdb_v2_option_handle option, idx_t index, duckdb_v2_identifier_t *out_alias, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_option_get_alias_count)
	(duckdb_v2_option_handle option, idx_t *out_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_option_get_default_value)
	(duckdb_v2_option_handle option, duckdb_v2_value_handle *out_value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_option_get_description)
	(duckdb_v2_option_handle option, duckdb_v2_str *out_description, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_option_get_name)
	(duckdb_v2_option_handle option, duckdb_v2_identifier_t *out_name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_parse_sql)
	(duckdb_v2_connection_handle conn, const char *sql, duckdb_v2_statement_iterator_handle *out_iterator,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_result_destroy)(duckdb_v2_result_handle *result);
	DUCKDB_V2_ERROR(*duckdb_v2_result_drain)
	(duckdb_v2_result_handle result, idx_t *out_rows_changed, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_result_fetch_chunk)
	(duckdb_v2_result_handle result, duckdb_v2_data_chunk_handle *out_chunk, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_result_get_result_type)
	(duckdb_v2_result_handle result, DUCKDB_V2_RESULT_TYPE *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_result_get_schema)
	(duckdb_v2_result_handle result, duckdb_v2_schema_handle *out_schema, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_result_get_statement_type)
	(duckdb_v2_result_handle result, DUCKDB_V2_STATEMENT_TYPE *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_result_render_box)
	(duckdb_v2_result_handle *result, idx_t max_rows, idx_t max_width, idx_t max_col_width,
	 const duckdb_v2_str *null_value, idx_t render_mode, idx_t limit, duckdb_v2_text_sink_fn sink, void *user_data,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_result_step)
	(duckdb_v2_result_handle result, duckdb_v2_data_chunk_handle *out_chunk, DUCKDB_V2_RESULT_STEP_STATUS *out_status,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_result_wait)(duckdb_v2_result_handle result, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_schema_destroy)(duckdb_v2_schema_handle *schema);
	DUCKDB_V2_ERROR(*duckdb_v2_schema_get_count)
	(duckdb_v2_schema_handle schema, idx_t *out_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_schema_get_field)
	(duckdb_v2_schema_handle schema, idx_t index, duckdb_v2_identifier_t *out_name,
	 duckdb_v2_logical_type_handle *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_sql_statement_destroy)(duckdb_v2_sql_statement_handle *statement);
	DUCKDB_V2_ERROR(*duckdb_v2_statement_bind)
	(duckdb_v2_connection_handle conn, duckdb_v2_sql_statement_handle statement, duckdb_v2_schema_handle *out_schema,
	 duckdb_v2_schema_handle *out_parameters, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_statement_execute)
	(duckdb_v2_connection_handle conn, duckdb_v2_sql_statement_handle statement,
	 const duckdb_v2_identifier_t *parameter_names, const duckdb_v2_value_handle *parameter_values,
	 idx_t parameter_count, duckdb_v2_result_handle *out_result, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_statement_iterator_destroy)(duckdb_v2_statement_iterator_handle *iterator);
	DUCKDB_V2_ERROR(*duckdb_v2_statement_iterator_next)
	(duckdb_v2_statement_iterator_handle iterator, duckdb_v2_sql_statement_handle *out_statement,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_cast)
	(duckdb_v2_factory_handle factory, duckdb_v2_value_handle value, duckdb_v2_logical_type_handle target_type,
	 duckdb_v2_value_handle *out_value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_array)
	(duckdb_v2_factory_handle factory, duckdb_v2_logical_type_handle child_type, const duckdb_v2_value_handle *children,
	 idx_t child_count, duckdb_v2_value_handle *out_value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_bigint)
	(duckdb_v2_factory_handle factory, int64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_bignum)
	(duckdb_v2_factory_handle factory, const duckdb_v2_str *in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_bit)
	(duckdb_v2_factory_handle factory, const duckdb_v2_str *in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_blob)
	(duckdb_v2_factory_handle factory, const duckdb_v2_str *in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_bool)
	(duckdb_v2_factory_handle factory, bool in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_date)
	(duckdb_v2_factory_handle factory, int32_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_decimal)
	(duckdb_v2_factory_handle factory, const duckdb_v2_hugeint_t *in_value, uint8_t width, uint8_t scale,
	 duckdb_v2_value_handle *out_value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_double)
	(duckdb_v2_factory_handle factory, double in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_float)
	(duckdb_v2_factory_handle factory, float in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_hugeint)
	(duckdb_v2_factory_handle factory, const duckdb_v2_hugeint_t *in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_int)
	(duckdb_v2_factory_handle factory, int32_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_interval)
	(duckdb_v2_factory_handle factory, const duckdb_v2_interval_t *in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_list)
	(duckdb_v2_factory_handle factory, duckdb_v2_logical_type_handle child_type, const duckdb_v2_value_handle *children,
	 idx_t child_count, duckdb_v2_value_handle *out_value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_map)
	(duckdb_v2_factory_handle factory, duckdb_v2_logical_type_handle key_type, duckdb_v2_logical_type_handle value_type,
	 const duckdb_v2_value_handle *keys, const duckdb_v2_value_handle *values, idx_t entry_count,
	 duckdb_v2_value_handle *out_value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_null)
	(duckdb_v2_factory_handle factory, duckdb_v2_logical_type_handle type, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_smallint)
	(duckdb_v2_factory_handle factory, int16_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_struct)
	(duckdb_v2_factory_handle factory, const duckdb_v2_identifier_t *names, const duckdb_v2_value_handle *children,
	 idx_t field_count, duckdb_v2_value_handle *out_value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_time)
	(duckdb_v2_factory_handle factory, int64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_time_ns)
	(duckdb_v2_factory_handle factory, int64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_time_tz)
	(duckdb_v2_factory_handle factory, uint64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_timestamp)
	(duckdb_v2_factory_handle factory, int64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_timestamp_ms)
	(duckdb_v2_factory_handle factory, int64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_timestamp_ns)
	(duckdb_v2_factory_handle factory, int64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_timestamp_sec)
	(duckdb_v2_factory_handle factory, int64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_timestamp_tz)
	(duckdb_v2_factory_handle factory, int64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_timestamp_tz_ns)
	(duckdb_v2_factory_handle factory, int64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_tinyint)
	(duckdb_v2_factory_handle factory, int8_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_tuple)
	(duckdb_v2_factory_handle factory, const duckdb_v2_value_handle *children, idx_t field_count,
	 duckdb_v2_value_handle *out_value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_type)
	(duckdb_v2_factory_handle factory, duckdb_v2_logical_type_handle in_type, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_ubigint)
	(duckdb_v2_factory_handle factory, uint64_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_uhugeint)
	(duckdb_v2_factory_handle factory, const duckdb_v2_uhugeint_t *in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_uint)
	(duckdb_v2_factory_handle factory, uint32_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_usmallint)
	(duckdb_v2_factory_handle factory, uint16_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_utinyint)
	(duckdb_v2_factory_handle factory, uint8_t in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_uuid)
	(duckdb_v2_factory_handle factory, const duckdb_v2_hugeint_t *in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_create_varchar)
	(duckdb_v2_factory_handle factory, const duckdb_v2_str *in_value, duckdb_v2_value_handle *out_value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_value_destroy)(duckdb_v2_value_handle *value);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_bigint)
	(duckdb_v2_value_handle value, int64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_blob)
	(duckdb_v2_value_handle value, duckdb_v2_str *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_bool)
	(duckdb_v2_value_handle value, bool *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_child)
	(duckdb_v2_value_handle value, idx_t index, duckdb_v2_value_handle *out_child, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_child_count)
	(duckdb_v2_value_handle value, idx_t *out_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_date)
	(duckdb_v2_value_handle value, int32_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_decimal)
	(duckdb_v2_value_handle value, duckdb_v2_hugeint_t *out, uint8_t *out_width, uint8_t *out_scale,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_double)
	(duckdb_v2_value_handle value, double *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_float)
	(duckdb_v2_value_handle value, float *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_hugeint)
	(duckdb_v2_value_handle value, duckdb_v2_hugeint_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_int)
	(duckdb_v2_value_handle value, int32_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_interval)
	(duckdb_v2_value_handle value, duckdb_v2_interval_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_logical_type)
	(duckdb_v2_value_handle value, duckdb_v2_logical_type_handle *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_smallint)
	(duckdb_v2_value_handle value, int16_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_time)
	(duckdb_v2_value_handle value, int64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_time_ns)
	(duckdb_v2_value_handle value, int64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_time_tz)
	(duckdb_v2_value_handle value, uint64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_timestamp)
	(duckdb_v2_value_handle value, int64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_timestamp_ms)
	(duckdb_v2_value_handle value, int64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_timestamp_ns)
	(duckdb_v2_value_handle value, int64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_timestamp_sec)
	(duckdb_v2_value_handle value, int64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_timestamp_tz)
	(duckdb_v2_value_handle value, int64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_timestamp_tz_ns)
	(duckdb_v2_value_handle value, int64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_tinyint)
	(duckdb_v2_value_handle value, int8_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_type)
	(duckdb_v2_value_handle value, duckdb_v2_logical_type_handle *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_ubigint)
	(duckdb_v2_value_handle value, uint64_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_uhugeint)
	(duckdb_v2_value_handle value, duckdb_v2_uhugeint_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_uint)
	(duckdb_v2_value_handle value, uint32_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_usmallint)
	(duckdb_v2_value_handle value, uint16_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_utinyint)
	(duckdb_v2_value_handle value, uint8_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_uuid)
	(duckdb_v2_value_handle value, duckdb_v2_hugeint_t *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_get_varchar)
	(duckdb_v2_value_handle value, duckdb_v2_str *out, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_is_null)
	(duckdb_v2_value_handle value, bool *out_is_null, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_value_to_string)
	(duckdb_v2_value_handle value, char *out_string, idx_t out_capacity, idx_t *out_length,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_constant_set_valid)
	(duckdb_v2_vector_handle vector, bool validity, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_flat_get_validity_mutable)
	(duckdb_v2_vector_handle vector, uint64_t **out_validity, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_vector_flatten)(duckdb_v2_vector_handle vector, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_get_arena)
	(duckdb_v2_vector_handle vector, duckdb_v2_arena_handle *out_arena, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_get_child)
	(duckdb_v2_vector_handle vector, idx_t index, duckdb_v2_vector_handle *out_child, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_get_child_count)
	(duckdb_v2_vector_handle vector, idx_t *out_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_get_data_mutable)
	(duckdb_v2_vector_handle vector, void **out_data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_get_logical_type)
	(duckdb_v2_vector_handle vector, duckdb_v2_logical_type_handle *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_get_size)
	(duckdb_v2_vector_handle vector, idx_t *out_size, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_get_value)
	(duckdb_v2_vector_handle vector, idx_t row, duckdb_v2_value_handle *out_value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_get_vector_type)
	(duckdb_v2_vector_handle vector, DUCKDB_V2_VECTOR_TYPE *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_get_view)
	(duckdb_v2_vector_handle vector, duckdb_v2_vector_view *out_view, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_make_constant)
	(duckdb_v2_vector_handle vector, duckdb_v2_value_handle value, idx_t count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_make_sequence)
	(duckdb_v2_vector_handle vector, int64_t start, int64_t increment, idx_t count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_reference)
	(duckdb_v2_vector_handle vector, duckdb_v2_vector_handle source, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_set_null)
	(duckdb_v2_vector_handle vector, idx_t row, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_set_size)
	(duckdb_v2_vector_handle vector, idx_t size, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_set_value)
	(duckdb_v2_vector_handle vector, idx_t row, duckdb_v2_value_handle value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_register_scalar_function)
	(duckdb_v2_connection_handle conn, duckdb_v2_scalar_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_context_log)
	(duckdb_v2_context_handle ctx, DUCKDB_V2_LOG_LEVEL level, const duckdb_v2_str *log_type,
	 const duckdb_v2_str *message, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_scalar_function)
	(duckdb_v2_extension_handle extension, duckdb_v2_scalar_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_signature_add_parameter)
	(duckdb_v2_function_signature_handle sig, const duckdb_v2_identifier_t *name, duckdb_v2_logical_type_handle type,
	 duckdb_v2_value_handle value, DUCKDB_V2_FUNCTION_PARAMETER_KIND kind, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_signature_set_return_type)
	(duckdb_v2_function_signature_handle sig, duckdb_v2_logical_type_handle type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_scalar_function_handle *function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_scalar_function_destroy)(duckdb_v2_scalar_function_handle *function);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_exec_get_arg)
	(duckdb_v2_scalar_function_exec_info_handle info, idx_t index, duckdb_v2_vector_handle *vector,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_exec_get_arg_count)
	(duckdb_v2_scalar_function_exec_info_handle info, idx_t *positional_fixed, idx_t *positional_variadic,
	 idx_t *named_fixed, idx_t *named_variadic, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_exec_get_bind_data)
	(duckdb_v2_scalar_function_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_exec_get_init_data)
	(duckdb_v2_scalar_function_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_exec_get_result)
	(duckdb_v2_scalar_function_exec_info_handle info, duckdb_v2_vector_handle *vector,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_exec_get_row_count)
	(duckdb_v2_scalar_function_exec_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_exec_get_user_data)
	(duckdb_v2_scalar_function_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_get_signature)
	(duckdb_v2_scalar_function_handle function, duckdb_v2_function_signature_handle *sig,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_init_get_bind_data)
	(duckdb_v2_scalar_function_init_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_init_get_user_data)
	(duckdb_v2_scalar_function_init_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_init_set_init_data)
	(duckdb_v2_scalar_function_init_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_set_bind_callback)
	(duckdb_v2_scalar_function_handle function, duckdb_v2_scalar_function_bind_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_set_exec_callback)
	(duckdb_v2_scalar_function_handle function, duckdb_v2_scalar_function_exec_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_set_init_callback)
	(duckdb_v2_scalar_function_handle function, duckdb_v2_scalar_function_init_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_set_name)
	(duckdb_v2_scalar_function_handle function, const duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_set_user_data)
	(duckdb_v2_scalar_function_handle function, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_bind_set_return_type)
	(duckdb_v2_aggregate_function_bind_info_handle info, duckdb_v2_logical_type_handle return_type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_combine_get_bind_data)
	(duckdb_v2_aggregate_function_combine_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_combine_get_sources)
	(duckdb_v2_aggregate_function_combine_info_handle info, void ***states, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_combine_get_state_count)
	(duckdb_v2_aggregate_function_combine_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_combine_get_targets)
	(duckdb_v2_aggregate_function_combine_info_handle info, void ***states, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_combine_get_user_data)
	(duckdb_v2_aggregate_function_combine_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_aggregate_function_handle *function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_aggregate_function_destroy)(duckdb_v2_aggregate_function_handle *function);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_destroy_get_bind_data)
	(duckdb_v2_aggregate_function_destroy_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_destroy_get_state_count)
	(duckdb_v2_aggregate_function_destroy_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_destroy_get_states)
	(duckdb_v2_aggregate_function_destroy_info_handle info, void ***states, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_destroy_get_user_data)
	(duckdb_v2_aggregate_function_destroy_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_finalize_get_bind_data)
	(duckdb_v2_aggregate_function_finalize_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_finalize_get_result)
	(duckdb_v2_aggregate_function_finalize_info_handle info, duckdb_v2_vector_handle *vector,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_finalize_get_result_offset)
	(duckdb_v2_aggregate_function_finalize_info_handle info, idx_t *offset, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_finalize_get_state_count)
	(duckdb_v2_aggregate_function_finalize_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_finalize_get_states)
	(duckdb_v2_aggregate_function_finalize_info_handle info, void ***states, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_finalize_get_user_data)
	(duckdb_v2_aggregate_function_finalize_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_get_signature)
	(duckdb_v2_aggregate_function_handle function, duckdb_v2_function_signature_handle *sig,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_init_get_bind_data)
	(duckdb_v2_aggregate_function_init_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_init_get_state_count)
	(duckdb_v2_aggregate_function_init_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_init_get_states)
	(duckdb_v2_aggregate_function_init_info_handle info, void ***states, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_init_get_user_data)
	(duckdb_v2_aggregate_function_init_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_set_bind_callback)
	(duckdb_v2_aggregate_function_handle function, duckdb_v2_aggregate_function_bind_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_set_combine_callback)
	(duckdb_v2_aggregate_function_handle function, duckdb_v2_aggregate_function_combine_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_set_destroy_callback)
	(duckdb_v2_aggregate_function_handle function, duckdb_v2_aggregate_function_destroy_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_set_finalize_callback)
	(duckdb_v2_aggregate_function_handle function, duckdb_v2_aggregate_function_finalize_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_set_init_callback)
	(duckdb_v2_aggregate_function_handle function, duckdb_v2_aggregate_function_init_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_set_name)
	(duckdb_v2_aggregate_function_handle function, const duckdb_v2_identifier_t *name,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_set_size_callback)
	(duckdb_v2_aggregate_function_handle function, duckdb_v2_aggregate_function_size_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_set_update_callback)
	(duckdb_v2_aggregate_function_handle function, duckdb_v2_aggregate_function_update_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_set_user_data)
	(duckdb_v2_aggregate_function_handle function, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_size_get_bind_data)
	(duckdb_v2_aggregate_function_size_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_size_get_user_data)
	(duckdb_v2_aggregate_function_size_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_size_set_state_size)
	(duckdb_v2_aggregate_function_size_info_handle info, idx_t size, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_update_get_arg)
	(duckdb_v2_aggregate_function_update_info_handle info, idx_t index, duckdb_v2_vector_handle *vector,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_update_get_arg_count)
	(duckdb_v2_aggregate_function_update_info_handle info, idx_t *positional_fixed, idx_t *positional_variadic,
	 idx_t *named_fixed, idx_t *named_variadic, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_update_get_bind_data)
	(duckdb_v2_aggregate_function_update_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_update_get_row_count)
	(duckdb_v2_aggregate_function_update_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_update_get_states)
	(duckdb_v2_aggregate_function_update_info_handle info, void ***states, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_update_get_user_data)
	(duckdb_v2_aggregate_function_update_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_register_aggregate_function)
	(duckdb_v2_connection_handle conn, duckdb_v2_aggregate_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_aggregate_function)
	(duckdb_v2_extension_handle extension, duckdb_v2_aggregate_function_handle function,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_set_property)
	(duckdb_v2_aggregate_function_handle function, DUCKDB_V2_FUNCTION_PROPERTY_KEY key,
	 DUCKDB_V2_FUNCTION_PROPERTY_VALUE value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_set_property)
	(duckdb_v2_scalar_function_handle function, DUCKDB_V2_FUNCTION_PROPERTY_KEY key,
	 DUCKDB_V2_FUNCTION_PROPERTY_VALUE value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_register_table_function)
	(duckdb_v2_connection_handle conn, duckdb_v2_table_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_table_function)
	(duckdb_v2_extension_handle extension, duckdb_v2_table_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_bind_add_result_column)
	(duckdb_v2_table_function_bind_info_handle info, const duckdb_v2_identifier_t *name,
	 duckdb_v2_logical_type_handle type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_bind_set_cardinality)
	(duckdb_v2_table_function_bind_info_handle info, idx_t cardinality, bool is_exact,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_table_function_handle *function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_table_function_destroy)(duckdb_v2_table_function_handle *function);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_exec_get_bind_data)
	(duckdb_v2_table_function_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_exec_get_global_state)
	(duckdb_v2_table_function_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_exec_get_local_state)
	(duckdb_v2_table_function_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_exec_get_output_chunk)
	(duckdb_v2_table_function_exec_info_handle info, duckdb_v2_data_chunk_handle *chunk,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_exec_get_user_data)
	(duckdb_v2_table_function_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_get_signature)
	(duckdb_v2_table_function_handle function, duckdb_v2_function_signature_handle *sig,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_global_get_bind_data)
	(duckdb_v2_table_function_init_global_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_global_get_user_data)
	(duckdb_v2_table_function_init_global_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_global_set_global_state)
	(duckdb_v2_table_function_init_global_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_global_set_max_threads)
	(duckdb_v2_table_function_init_global_info_handle info, idx_t max_threads, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_local_get_bind_data)
	(duckdb_v2_table_function_init_local_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_local_get_global_state)
	(duckdb_v2_table_function_init_local_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_local_get_user_data)
	(duckdb_v2_table_function_init_local_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_local_set_local_state)
	(duckdb_v2_table_function_init_local_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_progress_get_bind_data)
	(duckdb_v2_table_function_progress_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_progress_get_global_state)
	(duckdb_v2_table_function_progress_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_progress_get_user_data)
	(duckdb_v2_table_function_progress_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_progress_set_progress)
	(duckdb_v2_table_function_progress_info_handle info, double progress, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_bind_callback)
	(duckdb_v2_table_function_handle function, duckdb_v2_table_function_bind_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_exec_callback)
	(duckdb_v2_table_function_handle function, duckdb_v2_table_function_exec_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_init_global_callback)
	(duckdb_v2_table_function_handle function, duckdb_v2_table_function_init_global_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_init_local_callback)
	(duckdb_v2_table_function_handle function, duckdb_v2_table_function_init_local_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_name)
	(duckdb_v2_table_function_handle function, const duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_progress_callback)
	(duckdb_v2_table_function_handle function, duckdb_v2_table_function_progress_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_user_data)
	(duckdb_v2_table_function_handle function, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_cast_function_handle *function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_cast_function_destroy)(duckdb_v2_cast_function_handle *function);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_exec_get_input)
	(duckdb_v2_cast_function_exec_info_handle info, duckdb_v2_vector_handle *vector, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_exec_get_mode)
	(duckdb_v2_cast_function_exec_info_handle info, DUCKDB_V2_CAST_MODE *mode, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_exec_get_output)
	(duckdb_v2_cast_function_exec_info_handle info, duckdb_v2_vector_handle *vector, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_exec_get_row_count)
	(duckdb_v2_cast_function_exec_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_exec_get_user_data)
	(duckdb_v2_cast_function_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_set_exec_callback)
	(duckdb_v2_cast_function_handle function, duckdb_v2_cast_function_exec_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_set_implicit_cast_cost)
	(duckdb_v2_cast_function_handle function, int64_t cost, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_set_source_type)
	(duckdb_v2_cast_function_handle function, duckdb_v2_logical_type_handle source_type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_set_target_type)
	(duckdb_v2_cast_function_handle function, duckdb_v2_logical_type_handle target_type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_cast_function_set_user_data)
	(duckdb_v2_cast_function_handle function, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_data_collection_clear)
	(duckdb_v2_column_data_collection_handle collection, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_register_cast_function)
	(duckdb_v2_connection_handle conn, duckdb_v2_cast_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_register_custom_type)
	(duckdb_v2_connection_handle conn, duckdb_v2_custom_type_handle type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_register_replacement_scan)
	(duckdb_v2_connection_handle conn, duckdb_v2_replacement_scan_handle scan, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_context_get_file_system)
	(duckdb_v2_context_handle context, duckdb_v2_file_system_handle *file_system, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_type_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_custom_type_handle *type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_custom_type_destroy)(duckdb_v2_custom_type_handle *type);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_type_set_base_type)
	(duckdb_v2_custom_type_handle type, duckdb_v2_logical_type_handle base_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_type_set_name)
	(duckdb_v2_custom_type_handle type, const duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_cast_function)
	(duckdb_v2_extension_handle extension, duckdb_v2_cast_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_custom_type)
	(duckdb_v2_extension_handle extension, duckdb_v2_custom_type_handle type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_replacement_scan)
	(duckdb_v2_extension_handle extension, duckdb_v2_replacement_scan_handle scan, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_file_close)(duckdb_v2_file_handle file, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_file_destroy)(duckdb_v2_file_handle *file);
	DUCKDB_V2_ERROR(*duckdb_v2_file_open_options_create)
	(duckdb_v2_file_system_handle file_system, duckdb_v2_file_open_options_handle *options,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_file_open_options_destroy)(duckdb_v2_file_open_options_handle *options);
	DUCKDB_V2_ERROR(*duckdb_v2_file_open_options_set_flag)
	(duckdb_v2_file_open_options_handle options, DUCKDB_V2_FILE_FLAG flag, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_open_options_set_value)
	(duckdb_v2_file_open_options_handle options, const duckdb_v2_str *name, duckdb_v2_value_handle value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_read)
	(duckdb_v2_file_handle file, void *buffer, idx_t buffer_size, idx_t *bytes_read, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_read_at)
	(duckdb_v2_file_handle file, void *buffer, idx_t buffer_size, idx_t location, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_seek)
	(duckdb_v2_file_handle file, idx_t position, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_file_size)(duckdb_v2_file_handle file, idx_t *size, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_file_sync)(duckdb_v2_file_handle file, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_system_open)
	(duckdb_v2_file_system_handle file_system, const duckdb_v2_str *file_path,
	 duckdb_v2_file_open_options_handle options, duckdb_v2_file_handle *file, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_tell)
	(duckdb_v2_file_handle file, idx_t *position, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_write)
	(duckdb_v2_file_handle file, const void *buffer, idx_t buffer_size, idx_t *bytes_written,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_write_at)
	(duckdb_v2_file_handle file, const void *buffer, idx_t buffer_size, idx_t location,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_register_replacement_scan)
	(duckdb_v2_instance_handle instance, duckdb_v2_replacement_scan_handle scan, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_qname_create)
	(const duckdb_v2_identifier_t *parts, idx_t part_count, duckdb_v2_qname_handle *name,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_qname_destroy)(duckdb_v2_qname_handle *name);
	DUCKDB_V2_ERROR(*duckdb_v2_qname_equals)
	(duckdb_v2_qname_handle left, duckdb_v2_qname_handle right, bool *result, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_qname_get_part)
	(duckdb_v2_qname_handle name, idx_t index, duckdb_v2_identifier_t *part, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_qname_get_part_count)
	(duckdb_v2_qname_handle name, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_qname_hash)
	(duckdb_v2_qname_handle name, uint64_t *hash, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_qname_parse)
	(const duckdb_v2_str *text, duckdb_v2_qname_handle *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_qname_render)
	(duckdb_v2_qname_handle name, char *out_text, idx_t out_capacity, idx_t *out_length,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_add_argument)
	(duckdb_v2_replacement_scan_info_handle info, duckdb_v2_value_handle value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_add_named_argument)
	(duckdb_v2_replacement_scan_info_handle info, const duckdb_v2_identifier_t *name, duckdb_v2_value_handle value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_replacement_scan_handle *scan, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_replacement_scan_destroy)(duckdb_v2_replacement_scan_handle *scan);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_get_name)
	(duckdb_v2_replacement_scan_info_handle info, duckdb_v2_qname_handle *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_get_user_data)
	(duckdb_v2_replacement_scan_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_set_alias)
	(duckdb_v2_replacement_scan_info_handle info, const duckdb_v2_identifier_t *alias,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_set_callback)
	(duckdb_v2_replacement_scan_handle scan, duckdb_v2_replacement_scan_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_set_collection)
	(duckdb_v2_replacement_scan_info_handle info, duckdb_v2_column_data_collection_handle collection,
	 const duckdb_v2_identifier_t *column_names, idx_t column_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_set_function_name)
	(duckdb_v2_replacement_scan_info_handle info, duckdb_v2_qname_handle name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_set_subquery)
	(duckdb_v2_replacement_scan_info_handle info, const duckdb_v2_str *sql, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_replacement_scan_set_user_data)
	(duckdb_v2_replacement_scan_handle scan, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_exporter_append)
	(duckdb_v2_arrow_exporter_handle exporter, duckdb_v2_data_chunk_handle *chunk, bool consume, bool flush,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_exporter_create)
	(duckdb_v2_context_handle context, const duckdb_v2_logical_type_handle *types, const duckdb_v2_str *names,
	 idx_t count, idx_t batch_size, duckdb_v2_arrow_exporter_handle *out_exporter, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_arrow_exporter_destroy)(duckdb_v2_arrow_exporter_handle *exporter);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_exporter_get_schema)
	(duckdb_v2_arrow_exporter_handle exporter, struct ArrowSchema *out_schema, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_exporter_next_array)
	(duckdb_v2_arrow_exporter_handle exporter, struct ArrowArray *out_array, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_importer_append)
	(duckdb_v2_arrow_importer_handle importer, struct ArrowArray *array, bool consume, bool flush,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_importer_create)
	(duckdb_v2_context_handle context, struct ArrowSchema *schema, idx_t batch_size,
	 duckdb_v2_arrow_importer_handle *out_importer, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_arrow_importer_destroy)(duckdb_v2_arrow_importer_handle *importer);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_importer_get_schema)
	(duckdb_v2_arrow_importer_handle importer, duckdb_v2_schema_handle *out_schema, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_importer_next_chunk)
	(duckdb_v2_arrow_importer_handle importer, duckdb_v2_data_chunk_handle *out_chunk,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_column_description_destroy)(duckdb_v2_column_description_handle *column);
	DUCKDB_V2_ERROR(*duckdb_v2_column_description_get_name)
	(duckdb_v2_column_description_handle column, duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_description_get_type)
	(duckdb_v2_column_description_handle column, duckdb_v2_logical_type_handle *type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_description_has_default)
	(duckdb_v2_column_description_handle column, bool *has_default, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_column_description_has_generated)
	(duckdb_v2_column_description_handle column, bool *has_generated, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_describe_table)
	(duckdb_v2_connection_handle conn, duckdb_v2_qname_handle name, duckdb_v2_table_description_handle *desc,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_register_copy_function)
	(duckdb_v2_connection_handle conn, duckdb_v2_copy_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_bind_get_column_count)
	(duckdb_v2_copy_from_bind_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_bind_get_column_name)
	(duckdb_v2_copy_from_bind_info_handle info, idx_t index, duckdb_v2_identifier_t *name,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_bind_get_column_type)
	(duckdb_v2_copy_from_bind_info_handle info, idx_t index, duckdb_v2_logical_type_handle *type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_bind_get_file_path)
	(duckdb_v2_copy_from_bind_info_handle info, duckdb_v2_str *path, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_bind_get_option_count)
	(duckdb_v2_copy_from_bind_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_bind_get_option_name)
	(duckdb_v2_copy_from_bind_info_handle info, idx_t index, duckdb_v2_identifier_t *name,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_bind_get_option_value)
	(duckdb_v2_copy_from_bind_info_handle info, idx_t index, duckdb_v2_value_handle *value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_bind_get_user_data)
	(duckdb_v2_copy_from_bind_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_bind_set_bind_data)
	(duckdb_v2_copy_from_bind_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_bind_set_cardinality)
	(duckdb_v2_copy_from_bind_info_handle info, idx_t cardinality, bool is_exact, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_exec_get_bind_data)
	(duckdb_v2_copy_from_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_exec_get_global_state)
	(duckdb_v2_copy_from_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_exec_get_local_state)
	(duckdb_v2_copy_from_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_exec_get_output_chunk)
	(duckdb_v2_copy_from_exec_info_handle info, duckdb_v2_data_chunk_handle *chunk, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_exec_get_user_data)
	(duckdb_v2_copy_from_exec_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_init_global_get_bind_data)
	(duckdb_v2_copy_from_init_global_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_init_global_get_user_data)
	(duckdb_v2_copy_from_init_global_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_init_global_set_global_state)
	(duckdb_v2_copy_from_init_global_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_init_global_set_max_threads)
	(duckdb_v2_copy_from_init_global_info_handle info, idx_t max_threads, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_init_local_get_bind_data)
	(duckdb_v2_copy_from_init_local_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_init_local_get_global_state)
	(duckdb_v2_copy_from_init_local_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_init_local_get_user_data)
	(duckdb_v2_copy_from_init_local_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_init_local_set_local_state)
	(duckdb_v2_copy_from_init_local_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_progress_get_bind_data)
	(duckdb_v2_copy_from_progress_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_progress_get_global_state)
	(duckdb_v2_copy_from_progress_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_progress_get_user_data)
	(duckdb_v2_copy_from_progress_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_progress_set_progress)
	(duckdb_v2_copy_from_progress_info_handle info, double progress, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_set_bind_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_from_bind_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_set_exec_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_from_exec_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_set_init_global_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_from_init_global_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_set_init_local_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_from_init_local_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_from_set_progress_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_from_progress_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_function_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_copy_function_handle *function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_copy_function_destroy)(duckdb_v2_copy_function_handle *function);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_function_set_name)
	(duckdb_v2_copy_function_handle function, const duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_function_set_user_data)
	(duckdb_v2_copy_function_handle function, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_batch_get_bind_data)
	(duckdb_v2_copy_to_batch_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_batch_get_init_data)
	(duckdb_v2_copy_to_batch_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_batch_get_user_data)
	(duckdb_v2_copy_to_batch_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_batch_set_batch_data)
	(duckdb_v2_copy_to_batch_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_batch_size_get_bind_data)
	(duckdb_v2_copy_to_batch_size_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_batch_size_get_user_data)
	(duckdb_v2_copy_to_batch_size_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_batch_size_set_target)
	(duckdb_v2_copy_to_batch_size_info_handle info, idx_t rows, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_batch_take_input)
	(duckdb_v2_copy_to_batch_info_handle info, duckdb_v2_column_data_collection_handle *collection,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_bind_get_column_count)
	(duckdb_v2_copy_to_bind_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_bind_get_column_name)
	(duckdb_v2_copy_to_bind_info_handle info, idx_t index, duckdb_v2_identifier_t *name,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_bind_get_column_type)
	(duckdb_v2_copy_to_bind_info_handle info, idx_t index, duckdb_v2_logical_type_handle *type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_bind_get_file_path)
	(duckdb_v2_copy_to_bind_info_handle info, duckdb_v2_str *path, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_bind_get_option_count)
	(duckdb_v2_copy_to_bind_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_bind_get_option_name)
	(duckdb_v2_copy_to_bind_info_handle info, idx_t index, duckdb_v2_identifier_t *name,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_bind_get_option_value)
	(duckdb_v2_copy_to_bind_info_handle info, idx_t index, duckdb_v2_value_handle *value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_bind_get_user_data)
	(duckdb_v2_copy_to_bind_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_bind_set_bind_data)
	(duckdb_v2_copy_to_bind_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_finalize_get_bind_data)
	(duckdb_v2_copy_to_finalize_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_finalize_get_init_data)
	(duckdb_v2_copy_to_finalize_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_finalize_get_user_data)
	(duckdb_v2_copy_to_finalize_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_flush_get_batch_data)
	(duckdb_v2_copy_to_flush_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_flush_get_bind_data)
	(duckdb_v2_copy_to_flush_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_flush_get_init_data)
	(duckdb_v2_copy_to_flush_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_flush_get_user_data)
	(duckdb_v2_copy_to_flush_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_init_get_bind_data)
	(duckdb_v2_copy_to_init_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_init_get_file_path)
	(duckdb_v2_copy_to_init_info_handle info, duckdb_v2_str *path, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_init_get_user_data)
	(duckdb_v2_copy_to_init_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_init_set_init_data)
	(duckdb_v2_copy_to_init_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_set_batch_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_to_batch_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_set_batch_size_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_to_batch_size_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_set_bind_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_to_bind_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_set_finalize_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_to_finalize_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_set_flush_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_to_flush_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_set_init_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_to_init_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_expression_cast_get_mode)
	(duckdb_v2_expression_handle expression, DUCKDB_V2_CAST_MODE *mode, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_expression_column_ref_get_index)
	(duckdb_v2_expression_handle expression, idx_t *index, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_expression_constant_get_value)
	(duckdb_v2_expression_handle expression, duckdb_v2_value_handle *value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_expression_function_get_name)
	(duckdb_v2_expression_handle expression, duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_expression_function_get_qname)
	(duckdb_v2_expression_handle expression, duckdb_v2_qname_handle *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_expression_get_child)
	(duckdb_v2_expression_handle expression, idx_t index, duckdb_v2_expression_handle *child,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_expression_get_child_count)
	(duckdb_v2_expression_handle expression, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_expression_get_return_type)
	(duckdb_v2_expression_handle expression, duckdb_v2_logical_type_handle *type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_expression_get_type)
	(duckdb_v2_expression_handle expression, DUCKDB_V2_EXPRESSION_TYPE *type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_copy_function)
	(duckdb_v2_extension_handle extension, duckdb_v2_copy_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_identifier_render_quoted)
	(const duckdb_v2_identifier_t *name, char *out_text, idx_t out_capacity, idx_t *out_length,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_prepared_statement_create)
	(duckdb_v2_connection_handle conn, duckdb_v2_sql_statement_handle statement, bool require_cacheable,
	 duckdb_v2_prepared_statement_handle *out_prepared, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_prepared_statement_destroy)(duckdb_v2_prepared_statement_handle *prepared);
	DUCKDB_V2_ERROR(*duckdb_v2_prepared_statement_execute)
	(duckdb_v2_prepared_statement_handle prepared, const duckdb_v2_identifier_t *parameter_names,
	 const duckdb_v2_value_handle *parameter_values, idx_t parameter_count, duckdb_v2_result_handle *out_result,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_prepared_statement_reuses_plan)
	(duckdb_v2_prepared_statement_handle prepared, bool *out_reuses, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_table_description_destroy)(duckdb_v2_table_description_handle *desc);
	DUCKDB_V2_ERROR(*duckdb_v2_table_description_get_column)
	(duckdb_v2_table_description_handle desc, idx_t index, duckdb_v2_column_description_handle *column,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_description_get_column_count)
	(duckdb_v2_table_description_handle desc, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_description_get_qname)
	(duckdb_v2_table_description_handle desc, duckdb_v2_qname_handle *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_description_is_readonly)
	(duckdb_v2_table_description_handle desc, bool *readonly, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_exec_get_column_count)
	(duckdb_v2_table_function_exec_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_exec_get_column_index)
	(duckdb_v2_table_function_exec_info_handle info, idx_t index, idx_t *column_index,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_filter_pushdown_accept)
	(duckdb_v2_table_function_filter_pushdown_info_handle info, idx_t index, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_filter_pushdown_get_bind_data)
	(duckdb_v2_table_function_filter_pushdown_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_filter_pushdown_get_column_count)
	(duckdb_v2_table_function_filter_pushdown_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_filter_pushdown_get_column_index)
	(duckdb_v2_table_function_filter_pushdown_info_handle info, idx_t index, idx_t *column_index,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_filter_pushdown_get_filter)
	(duckdb_v2_table_function_filter_pushdown_info_handle info, idx_t index, duckdb_v2_expression_handle *filter,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_filter_pushdown_get_filter_count)
	(duckdb_v2_table_function_filter_pushdown_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_filter_pushdown_get_user_data)
	(duckdb_v2_table_function_filter_pushdown_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_global_get_column_count)
	(duckdb_v2_table_function_init_global_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_global_get_column_index)
	(duckdb_v2_table_function_init_global_info_handle info, idx_t index, idx_t *column_index,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_local_get_column_count)
	(duckdb_v2_table_function_init_local_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_init_local_get_column_index)
	(duckdb_v2_table_function_init_local_info_handle info, idx_t index, idx_t *column_index,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_filter_pushdown_callback)
	(duckdb_v2_table_function_handle function, duckdb_v2_table_function_filter_pushdown_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_projection_pushdown)
	(duckdb_v2_table_function_handle function, bool enable, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_sql_statement_get_parameter_count)
	(duckdb_v2_sql_statement_handle statement, idx_t *out_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_sql_statement_get_parameter_name)
	(duckdb_v2_sql_statement_handle statement, idx_t index, duckdb_v2_identifier_t *out_name,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_sql_statement_get_text)
	(duckdb_v2_sql_statement_handle statement, duckdb_v2_str *out_text, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_sql_statement_get_type)
	(duckdb_v2_sql_statement_handle statement, DUCKDB_V2_STATEMENT_TYPE *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_token_iterator_destroy)(duckdb_v2_token_iterator_handle *iterator);
	DUCKDB_V2_ERROR(*duckdb_v2_token_iterator_ends_unterminated)
	(duckdb_v2_token_iterator_handle iterator, bool *out_ends_unterminated, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_token_iterator_next)
	(duckdb_v2_token_iterator_handle iterator, DUCKDB_V2_TOKEN_TYPE *out_type, idx_t *out_start, idx_t *out_length,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_tokenize_sql)
	(duckdb_v2_connection_handle conn, const duckdb_v2_str *sql, duckdb_v2_token_iterator_handle *out_iterator,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_attach_options_create)
	(duckdb_v2_instance_handle instance, duckdb_v2_attach_options_handle *out_options,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_attach_options_destroy)(duckdb_v2_attach_options_handle *options);
	DUCKDB_V2_ERROR(*duckdb_v2_attach_options_set)
	(duckdb_v2_attach_options_handle options, const duckdb_v2_identifier_t *key, const duckdb_v2_str *setting,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_set_default)
	(duckdb_v2_instance_handle instance, const duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partition_data_get_bind_data)
	(duckdb_v2_table_function_partition_data_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partition_data_get_global_state)
	(duckdb_v2_table_function_partition_data_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partition_data_get_local_state)
	(duckdb_v2_table_function_partition_data_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partition_data_get_partition_column_count)
	(duckdb_v2_table_function_partition_data_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partition_data_get_partition_column_index)
	(duckdb_v2_table_function_partition_data_info_handle info, idx_t index, idx_t *column_index,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partition_data_get_user_data)
	(duckdb_v2_table_function_partition_data_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partition_data_requires_batch_index)
	(duckdb_v2_table_function_partition_data_info_handle info, bool *required, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partition_data_requires_partition_columns)
	(duckdb_v2_table_function_partition_data_info_handle info, bool *required, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partition_data_set_batch_index)
	(duckdb_v2_table_function_partition_data_info_handle info, idx_t batch_index, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partition_data_set_partition_value)
	(duckdb_v2_table_function_partition_data_info_handle info, idx_t index, duckdb_v2_value_handle value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partitioning_get_bind_data)
	(duckdb_v2_table_function_partitioning_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partitioning_get_partition_column_count)
	(duckdb_v2_table_function_partitioning_info_handle info, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partitioning_get_partition_column_index)
	(duckdb_v2_table_function_partitioning_info_handle info, idx_t index, idx_t *column_index,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partitioning_get_user_data)
	(duckdb_v2_table_function_partitioning_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_partitioning_set_partition_info)
	(duckdb_v2_table_function_partitioning_info_handle info, DUCKDB_V2_TABLE_PARTITION_INFO partition_info,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_partition_data_callback)
	(duckdb_v2_table_function_handle function, duckdb_v2_table_function_partition_data_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_partitioning_callback)
	(duckdb_v2_table_function_handle function, duckdb_v2_table_function_partitioning_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_validate_utf8)(const duckdb_v2_str *text, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_register_multi_file_function)
	(duckdb_v2_connection_handle conn, duckdb_v2_multi_file_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_set_statistics_callback)
	(duckdb_v2_copy_function_handle function, duckdb_v2_copy_to_statistics_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_statistics_get_bind_data)
	(duckdb_v2_copy_to_statistics_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_statistics_get_init_data)
	(duckdb_v2_copy_to_statistics_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_statistics_get_user_data)
	(duckdb_v2_copy_to_statistics_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_statistics_set_file_size)
	(duckdb_v2_copy_to_statistics_info_handle info, idx_t file_size_bytes, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_to_statistics_set_row_count)
	(duckdb_v2_copy_to_statistics_info_handle info, idx_t row_count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_data_chunk_get_capacity)
	(duckdb_v2_data_chunk_handle chunk, idx_t *out_capacity, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_multi_file_function)
	(duckdb_v2_extension_handle extension, duckdb_v2_multi_file_function_handle function,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_multi_file_function_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_multi_file_function_handle *function,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_multi_file_function_destroy)(duckdb_v2_multi_file_function_handle *function);
	DUCKDB_V2_ERROR(*duckdb_v2_multi_file_function_set_file_extension)
	(duckdb_v2_multi_file_function_handle function, duckdb_v2_str *extension, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_multi_file_function_set_name)
	(duckdb_v2_multi_file_function_handle function, duckdb_v2_str *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_multi_file_function_set_reader_type)
	(duckdb_v2_multi_file_function_handle function, duckdb_v2_str *reader_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_multi_file_function_set_single_file_function)
	(duckdb_v2_multi_file_function_handle function, duckdb_v2_str *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_claim_batch_get_bind_data)
	(duckdb_v2_table_function_claim_batch_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_claim_batch_get_global_state)
	(duckdb_v2_table_function_claim_batch_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_claim_batch_get_local_state)
	(duckdb_v2_table_function_claim_batch_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_claim_batch_get_user_data)
	(duckdb_v2_table_function_claim_batch_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_claim_batch_set_claimed)
	(duckdb_v2_table_function_claim_batch_info_handle info, bool claimed, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_claim_batch_callback)
	(duckdb_v2_table_function_handle function, duckdb_v2_table_function_claim_batch_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_bind_get_arg_count)
	(duckdb_v2_function_bind_info_handle info, idx_t *positional_fixed, idx_t *positional_variadic, idx_t *named_fixed,
	 idx_t *named_variadic, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_bind_get_arg_index)
	(duckdb_v2_function_bind_info_handle info, const duckdb_v2_identifier_t *name, idx_t *index, bool *found,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_bind_get_arg_name)
	(duckdb_v2_function_bind_info_handle info, idx_t index, duckdb_v2_identifier_t *name,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_bind_get_arg_type)
	(duckdb_v2_function_bind_info_handle info, idx_t index, duckdb_v2_logical_type_handle *type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_bind_get_arg_value)
	(duckdb_v2_function_bind_info_handle info, idx_t index, duckdb_v2_value_handle *value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_bind_get_user_data)
	(duckdb_v2_function_bind_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_bind_set_bind_data)
	(duckdb_v2_function_bind_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_bind_set_order_preservation)
	(duckdb_v2_table_function_bind_info_handle info, DUCKDB_V2_ORDER_PRESERVATION order,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_arrow_result_destroy)(duckdb_v2_arrow_result_handle *result);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_result_drain)
	(duckdb_v2_arrow_result_handle result, idx_t *out_rows_changed, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_result_fetch_array)
	(duckdb_v2_arrow_result_handle result, struct ArrowArray *out_array, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_result_get_result_type)
	(duckdb_v2_arrow_result_handle result, DUCKDB_V2_RESULT_TYPE *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_result_get_schema)
	(duckdb_v2_arrow_result_handle result, struct ArrowSchema *out_schema, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_result_get_statement_type)
	(duckdb_v2_arrow_result_handle result, DUCKDB_V2_STATEMENT_TYPE *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_result_step)
	(duckdb_v2_arrow_result_handle result, struct ArrowArray *out_array, DUCKDB_V2_RESULT_STEP_STATUS *out_status,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_result_to_arrow_c_stream)
	(duckdb_v2_arrow_result_handle *result, struct ArrowArrayStream *out_stream, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_arrow_result_wait)
	(duckdb_v2_arrow_result_handle result, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_prepared_statement_execute_arrow)
	(duckdb_v2_prepared_statement_handle prepared, const duckdb_v2_identifier_t *parameter_names,
	 const duckdb_v2_value_handle *parameter_values, idx_t parameter_count, idx_t batch_size,
	 duckdb_v2_arrow_result_handle *out_result, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_statement_execute_arrow)
	(duckdb_v2_connection_handle conn, duckdb_v2_sql_statement_handle statement,
	 const duckdb_v2_identifier_t *parameter_names, const duckdb_v2_value_handle *parameter_values,
	 idx_t parameter_count, idx_t batch_size, duckdb_v2_arrow_result_handle *out_result,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_resolve_types_set_return_type)
	(duckdb_v2_scalar_function_resolve_types_info_handle info, duckdb_v2_logical_type_handle return_type,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_set_resolve_types_callback)
	(duckdb_v2_scalar_function_handle function, duckdb_v2_scalar_function_resolve_types_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_get_bind_info_get_bind_data)
	(duckdb_v2_table_function_get_bind_info_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_get_bind_info_get_user_data)
	(duckdb_v2_table_function_get_bind_info_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_get_bind_info_set_column_identifier)
	(duckdb_v2_table_function_get_bind_info_info_handle info, idx_t column_index, const idx_t *child_path,
	 idx_t child_path_length, duckdb_v2_value_handle identifier, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_get_bind_info_set_option)
	(duckdb_v2_table_function_get_bind_info_info_handle info, duckdb_v2_str *key, duckdb_v2_value_handle value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_set_get_bind_info_callback)
	(duckdb_v2_table_function_handle function, duckdb_v2_table_function_get_bind_info_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_get_factory)
	(duckdb_v2_connection_handle conn, duckdb_v2_factory_handle *out_factory, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_context_get_factory)
	(duckdb_v2_context_handle ctx, duckdb_v2_factory_handle *out_factory, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_get_factory)
	(duckdb_v2_instance_handle instance, duckdb_v2_factory_handle *out_factory, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_bind_set_bind_data)
	(duckdb_v2_scalar_function_bind_info_handle info, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_config_get_option_value)
	(duckdb_v2_config_handle config, const duckdb_v2_identifier_t *name, duckdb_v2_value_handle *out_value,
	 DUCKDB_V2_SETTING_SCOPE *out_scope, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_config_set_option_text)
	(duckdb_v2_config_handle config, const duckdb_v2_identifier_t *name, const duckdb_v2_str *setting,
	 DUCKDB_V2_SETTING_SCOPE scope, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_config_set_option_value)
	(duckdb_v2_config_handle config, const duckdb_v2_identifier_t *name, duckdb_v2_value_handle value,
	 DUCKDB_V2_SETTING_SCOPE scope, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_get_config)
	(duckdb_v2_connection_handle conn, duckdb_v2_config_handle *out_config, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_get_file_system)
	(duckdb_v2_connection_handle conn, duckdb_v2_file_system_handle *file_system, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_log)
	(duckdb_v2_connection_handle conn, DUCKDB_V2_LOG_LEVEL level, const duckdb_v2_str *log_type,
	 const duckdb_v2_str *message, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_context_get_config)
	(duckdb_v2_context_handle ctx, duckdb_v2_config_handle *out_config, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_get_config)
	(duckdb_v2_instance_handle instance, duckdb_v2_config_handle *out_config, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_get_file_system)
	(duckdb_v2_instance_handle instance, duckdb_v2_file_system_handle *file_system, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_log)
	(duckdb_v2_instance_handle instance, DUCKDB_V2_LOG_LEVEL level, const duckdb_v2_str *log_type,
	 const duckdb_v2_str *message, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_option_get_default_scope)
	(duckdb_v2_option_handle option, DUCKDB_V2_SETTING_SCOPE *out_scope, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_option_supports_scope)
	(duckdb_v2_option_handle option, DUCKDB_V2_SETTING_SCOPE scope, bool *out_supported,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_aggregate_function_get_docs)
	(duckdb_v2_aggregate_function_handle function, duckdb_v2_function_docs_handle *docs,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_register_pragma_function)
	(duckdb_v2_connection_handle conn, duckdb_v2_pragma_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_pragma_function)
	(duckdb_v2_extension_handle extension, duckdb_v2_pragma_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_factory_create_common_type)
	(duckdb_v2_factory_handle factory, const duckdb_v2_logical_type_handle *types, idx_t type_count,
	 duckdb_v2_logical_type_handle *out_type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_docs_add_category)
	(duckdb_v2_function_docs_handle docs, const duckdb_v2_str *category, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_docs_add_example)
	(duckdb_v2_function_docs_handle docs, const duckdb_v2_str *title, const duckdb_v2_str *example,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_function_docs_set_description)
	(duckdb_v2_function_docs_handle docs, const duckdb_v2_str *description, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_pragma_function_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_pragma_function_handle *function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_pragma_function_destroy)(duckdb_v2_pragma_function_handle *function);
	DUCKDB_V2_ERROR(*duckdb_v2_pragma_function_get_docs)
	(duckdb_v2_pragma_function_handle function, duckdb_v2_function_docs_handle *docs, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_pragma_function_get_signature)
	(duckdb_v2_pragma_function_handle function, duckdb_v2_function_signature_handle *sig,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_pragma_function_query_set_query)
	(duckdb_v2_pragma_function_query_info_handle info, const duckdb_v2_str *query, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_pragma_function_set_exec_callback)
	(duckdb_v2_pragma_function_handle function, duckdb_v2_pragma_function_exec_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_pragma_function_set_name)
	(duckdb_v2_pragma_function_handle function, const duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_pragma_function_set_query_callback)
	(duckdb_v2_pragma_function_handle function, duckdb_v2_pragma_function_query_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_pragma_function_set_user_data)
	(duckdb_v2_pragma_function_handle function, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_scalar_function_get_docs)
	(duckdb_v2_scalar_function_handle function, duckdb_v2_function_docs_handle *docs, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_table_function_get_docs)
	(duckdb_v2_table_function_handle function, duckdb_v2_function_docs_handle *docs, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_register_custom_option)
	(duckdb_v2_connection_handle conn, duckdb_v2_custom_option_handle option, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_custom_option_handle *option, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_custom_option_destroy)(duckdb_v2_custom_option_handle *option);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_set_default_scope)
	(duckdb_v2_custom_option_handle option, DUCKDB_V2_SETTING_SCOPE scope, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_set_default_value)
	(duckdb_v2_custom_option_handle option, duckdb_v2_value_handle value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_set_description)
	(duckdb_v2_custom_option_handle option, const duckdb_v2_str *description, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_set_name)
	(duckdb_v2_custom_option_handle option, const duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_set_supports_scope)
	(duckdb_v2_custom_option_handle option, DUCKDB_V2_SETTING_SCOPE scope, bool supported,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_set_type)
	(duckdb_v2_custom_option_handle option, duckdb_v2_logical_type_handle type, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_set_update_callback)
	(duckdb_v2_custom_option_handle option, duckdb_v2_custom_option_update_callback_fn callback,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_set_user_data)
	(duckdb_v2_custom_option_handle option, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_update_get_scope)
	(duckdb_v2_custom_option_update_info_handle info, DUCKDB_V2_SETTING_SCOPE *scope, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_update_get_user_data)
	(duckdb_v2_custom_option_update_info_handle info, void **data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_update_get_value)
	(duckdb_v2_custom_option_update_info_handle info, duckdb_v2_value_handle *value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_update_is_reset)
	(duckdb_v2_custom_option_update_info_handle info, bool *is_reset, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_custom_option_update_set_value)
	(duckdb_v2_custom_option_update_info_handle info, duckdb_v2_value_handle value, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_custom_option)
	(duckdb_v2_extension_handle extension, duckdb_v2_custom_option_handle option, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_log_sink)
	(duckdb_v2_extension_handle extension, duckdb_v2_log_sink_handle sink, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_extension_register_macro_function)
	(duckdb_v2_extension_handle extension, duckdb_v2_macro_function_handle function, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_system_path_exists)
	(duckdb_v2_file_system_handle file_system, const duckdb_v2_str *path, bool *out_exists,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_system_path_expand)
	(duckdb_v2_file_system_handle file_system, const duckdb_v2_str *path, duckdb_v2_text_sink_fn sink, void *user_data,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_system_path_is_remote)
	(duckdb_v2_file_system_handle file_system, const duckdb_v2_str *path, bool *out_is_remote,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_instance_register_log_sink)
	(duckdb_v2_instance_handle instance, duckdb_v2_log_sink_handle sink, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_log_sink_create)
	(duckdb_v2_factory_handle factory, duckdb_v2_log_sink_handle *sink, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_log_sink_destroy)(duckdb_v2_log_sink_handle *sink);
	DUCKDB_V2_ERROR(*duckdb_v2_log_sink_set_flush_callback)
	(duckdb_v2_log_sink_handle sink, duckdb_v2_log_sink_flush_callback_fn callback, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_log_sink_set_name)
	(duckdb_v2_log_sink_handle sink, const duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_log_sink_set_user_data)
	(duckdb_v2_log_sink_handle sink, duckdb_v2_opaque *data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_log_sink_set_write_callback)
	(duckdb_v2_log_sink_handle sink, duckdb_v2_log_sink_write_callback_fn callback, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_log_sink_write_info_get_connection_id)
	(duckdb_v2_log_sink_write_info_handle info, idx_t *id, bool *present, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_log_sink_write_info_get_query_id)
	(duckdb_v2_log_sink_write_info_handle info, idx_t *id, bool *present, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_log_sink_write_info_get_thread_id)
	(duckdb_v2_log_sink_write_info_handle info, idx_t *id, bool *present, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_log_sink_write_info_get_transaction_id)
	(duckdb_v2_log_sink_write_info_handle info, idx_t *id, bool *present, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_macro_function_create)
	(duckdb_v2_factory_handle factory, DUCKDB_V2_MACRO_FUNCTION_TYPE type, duckdb_v2_macro_function_handle *function,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_macro_function_destroy)(duckdb_v2_macro_function_handle *function);
	DUCKDB_V2_ERROR(*duckdb_v2_macro_function_get_docs)
	(duckdb_v2_macro_function_handle function, duckdb_v2_function_docs_handle *docs, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_macro_function_get_signature)
	(duckdb_v2_macro_function_handle function, duckdb_v2_function_signature_handle *sig,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_macro_function_set_body)
	(duckdb_v2_macro_function_handle function, const duckdb_v2_str *body, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_macro_function_set_name)
	(duckdb_v2_macro_function_handle function, const duckdb_v2_identifier_t *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_vector_cast)
	(duckdb_v2_factory_handle factory, duckdb_v2_vector_handle source, duckdb_v2_vector_handle target,
	 DUCKDB_V2_CAST_MODE mode, bool *out_converted, duckdb_v2_error_info_handle *cast_err,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_enable_profiling)
	(duckdb_v2_connection_handle conn, bool enabled, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_connection_get_query_metrics)
	(duckdb_v2_connection_handle conn, duckdb_v2_query_metrics_handle *metrics, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_copy_function_set_file_extension)
	(duckdb_v2_copy_function_handle function, const duckdb_v2_str *extension, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_data_chunk_clear)(duckdb_v2_data_chunk_handle chunk, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_system_path_glob)
	(duckdb_v2_file_system_handle file_system, const duckdb_v2_str *pattern,
	 duckdb_v2_file_system_path_glob_callback_fn callback, void *user_data, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_system_path_move)
	(duckdb_v2_file_system_handle file_system, const duckdb_v2_str *source, const duckdb_v2_str *target,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_file_system_path_remove)
	(duckdb_v2_file_system_handle file_system, const duckdb_v2_str *path, bool *out_removed,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR (*duckdb_v2_query_metrics_destroy)(duckdb_v2_query_metrics_handle *metrics);
	DUCKDB_V2_ERROR(*duckdb_v2_query_metrics_get_root)
	(duckdb_v2_query_metrics_handle metrics, duckdb_v2_query_metrics_node_handle *node,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_query_metrics_node_get_child)
	(duckdb_v2_query_metrics_node_handle node, idx_t index, duckdb_v2_query_metrics_node_handle *child,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_query_metrics_node_get_child_count)
	(duckdb_v2_query_metrics_node_handle node, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_query_metrics_node_get_metric)
	(duckdb_v2_query_metrics_node_handle node, const duckdb_v2_str *name, duckdb_v2_value_handle *value, bool *present,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_query_metrics_node_get_metric_count)
	(duckdb_v2_query_metrics_node_handle node, idx_t *count, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_query_metrics_node_get_metric_name)
	(duckdb_v2_query_metrics_node_handle node, idx_t index, duckdb_v2_str *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_query_metrics_node_get_metric_value)
	(duckdb_v2_query_metrics_node_handle node, idx_t index, duckdb_v2_value_handle *value,
	 duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_query_metrics_node_get_name)
	(duckdb_v2_query_metrics_node_handle node, duckdb_v2_str *name, duckdb_v2_error_info_handle *err);
	DUCKDB_V2_ERROR(*duckdb_v2_statement_add_collection)
	(duckdb_v2_sql_statement_handle statement, const duckdb_v2_identifier_t *name,
	 duckdb_v2_column_data_collection_handle collection, const duckdb_v2_identifier_t *column_names, idx_t column_count,
	 duckdb_v2_error_info_handle *err);
#endif
	// capigen:end appended
} duckdb_ext_api_v2;

//===--------------------------------------------------------------------===//
// Typedefs mapping functions to struct entries
//===--------------------------------------------------------------------===//
// When building as a static extension, DuckDB symbols are resolved directly at link time.
// The vtable (duckdb_ext_api) is not used - skip these macro redirections.
#ifndef DUCKDB_BUILD_STATIC_EXTENSION
// capigen:begin appended
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arena_allocate duckdb_ext_api.duckdb_v2_arena_allocate
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_bignum_decode duckdb_ext_api.duckdb_v2_bignum_decode
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_bignum_encode duckdb_ext_api.duckdb_v2_bignum_encode
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_append duckdb_ext_api.duckdb_v2_column_data_collection_append
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_append_state_create                                                           \
	duckdb_ext_api.duckdb_v2_column_data_collection_append_state_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_append_state_destroy                                                          \
	duckdb_ext_api.duckdb_v2_column_data_collection_append_state_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_combine duckdb_ext_api.duckdb_v2_column_data_collection_combine
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_create duckdb_ext_api.duckdb_v2_column_data_collection_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_destroy duckdb_ext_api.duckdb_v2_column_data_collection_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_reset duckdb_ext_api.duckdb_v2_column_data_collection_reset
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_row_count duckdb_ext_api.duckdb_v2_column_data_collection_row_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_scan duckdb_ext_api.duckdb_v2_column_data_collection_scan
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_shared_scan_state_create                                                      \
	duckdb_ext_api.duckdb_v2_column_data_collection_shared_scan_state_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_shared_scan_state_destroy                                                     \
	duckdb_ext_api.duckdb_v2_column_data_collection_shared_scan_state_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_worker_scan_state_create                                                      \
	duckdb_ext_api.duckdb_v2_column_data_collection_worker_scan_state_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_worker_scan_state_destroy                                                     \
	duckdb_ext_api.duckdb_v2_column_data_collection_worker_scan_state_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_config_get_option_by_index duckdb_ext_api.duckdb_v2_config_get_option_by_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_config_get_option_by_name duckdb_ext_api.duckdb_v2_config_get_option_by_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_config_get_option_count duckdb_ext_api.duckdb_v2_config_get_option_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_create duckdb_ext_api.duckdb_v2_connection_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_destroy duckdb_ext_api.duckdb_v2_connection_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_interrupt duckdb_ext_api.duckdb_v2_connection_interrupt
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_progress_get duckdb_ext_api.duckdb_v2_connection_progress_get
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_data_chunk_copy duckdb_ext_api.duckdb_v2_data_chunk_copy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_data_chunk_create duckdb_ext_api.duckdb_v2_data_chunk_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_data_chunk_destroy duckdb_ext_api.duckdb_v2_data_chunk_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_data_chunk_get_size duckdb_ext_api.duckdb_v2_data_chunk_get_size
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_data_chunk_get_vector duckdb_ext_api.duckdb_v2_data_chunk_get_vector
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_data_chunk_get_vector_count duckdb_ext_api.duckdb_v2_data_chunk_get_vector_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_environment_create duckdb_ext_api.duckdb_v2_environment_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_environment_destroy duckdb_ext_api.duckdb_v2_environment_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_environment_get_instance_count duckdb_ext_api.duckdb_v2_environment_get_instance_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_error_info_destroy duckdb_ext_api.duckdb_v2_error_info_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_error_info_get_code duckdb_ext_api.duckdb_v2_error_info_get_code
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_error_info_get_raw_text duckdb_ext_api.duckdb_v2_error_info_get_raw_text
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_error_info_get_text duckdb_ext_api.duckdb_v2_error_info_get_text
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_error_info_set_code duckdb_ext_api.duckdb_v2_error_info_set_code
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_error_info_set_text duckdb_ext_api.duckdb_v2_error_info_set_text
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_factory_create_type_from_id duckdb_ext_api.duckdb_v2_factory_create_type_from_id
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_factory_create_type_from_name duckdb_ext_api.duckdb_v2_factory_create_type_from_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_factory_create_type_from_text duckdb_ext_api.duckdb_v2_factory_create_type_from_text
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_factory_create_type_with_alias duckdb_ext_api.duckdb_v2_factory_create_type_with_alias
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_attach duckdb_ext_api.duckdb_v2_instance_attach
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_create duckdb_ext_api.duckdb_v2_instance_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_create_with_options duckdb_ext_api.duckdb_v2_instance_create_with_options
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_destroy duckdb_ext_api.duckdb_v2_instance_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_detach duckdb_ext_api.duckdb_v2_instance_detach
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_library_version duckdb_ext_api.duckdb_v2_library_version
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_logical_type_copy duckdb_ext_api.duckdb_v2_logical_type_copy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_logical_type_destroy duckdb_ext_api.duckdb_v2_logical_type_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_logical_type_get_id duckdb_ext_api.duckdb_v2_logical_type_get_id
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_logical_type_get_name duckdb_ext_api.duckdb_v2_logical_type_get_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_logical_type_get_param duckdb_ext_api.duckdb_v2_logical_type_get_param
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_logical_type_get_param_count duckdb_ext_api.duckdb_v2_logical_type_get_param_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_logical_type_is_equal duckdb_ext_api.duckdb_v2_logical_type_is_equal
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_logical_type_to_text duckdb_ext_api.duckdb_v2_logical_type_to_text
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_option_destroy duckdb_ext_api.duckdb_v2_option_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_option_get_alias duckdb_ext_api.duckdb_v2_option_get_alias
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_option_get_alias_count duckdb_ext_api.duckdb_v2_option_get_alias_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_option_get_default_value duckdb_ext_api.duckdb_v2_option_get_default_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_option_get_description duckdb_ext_api.duckdb_v2_option_get_description
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_option_get_name duckdb_ext_api.duckdb_v2_option_get_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_parse_sql duckdb_ext_api.duckdb_v2_parse_sql
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_result_destroy duckdb_ext_api.duckdb_v2_result_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_result_drain duckdb_ext_api.duckdb_v2_result_drain
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_result_fetch_chunk duckdb_ext_api.duckdb_v2_result_fetch_chunk
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_result_get_result_type duckdb_ext_api.duckdb_v2_result_get_result_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_result_get_schema duckdb_ext_api.duckdb_v2_result_get_schema
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_result_get_statement_type duckdb_ext_api.duckdb_v2_result_get_statement_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_result_render_box duckdb_ext_api.duckdb_v2_result_render_box
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_result_step duckdb_ext_api.duckdb_v2_result_step
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_result_wait duckdb_ext_api.duckdb_v2_result_wait
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_schema_destroy duckdb_ext_api.duckdb_v2_schema_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_schema_get_count duckdb_ext_api.duckdb_v2_schema_get_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_schema_get_field duckdb_ext_api.duckdb_v2_schema_get_field
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_sql_statement_destroy duckdb_ext_api.duckdb_v2_sql_statement_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_statement_bind duckdb_ext_api.duckdb_v2_statement_bind
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_statement_execute duckdb_ext_api.duckdb_v2_statement_execute
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_statement_iterator_destroy duckdb_ext_api.duckdb_v2_statement_iterator_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_statement_iterator_next duckdb_ext_api.duckdb_v2_statement_iterator_next
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_cast duckdb_ext_api.duckdb_v2_value_cast
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_array duckdb_ext_api.duckdb_v2_value_create_array
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_bigint duckdb_ext_api.duckdb_v2_value_create_bigint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_bignum duckdb_ext_api.duckdb_v2_value_create_bignum
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_bit duckdb_ext_api.duckdb_v2_value_create_bit
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_blob duckdb_ext_api.duckdb_v2_value_create_blob
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_bool duckdb_ext_api.duckdb_v2_value_create_bool
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_date duckdb_ext_api.duckdb_v2_value_create_date
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_decimal duckdb_ext_api.duckdb_v2_value_create_decimal
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_double duckdb_ext_api.duckdb_v2_value_create_double
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_float duckdb_ext_api.duckdb_v2_value_create_float
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_hugeint duckdb_ext_api.duckdb_v2_value_create_hugeint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_int duckdb_ext_api.duckdb_v2_value_create_int
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_interval duckdb_ext_api.duckdb_v2_value_create_interval
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_list duckdb_ext_api.duckdb_v2_value_create_list
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_map duckdb_ext_api.duckdb_v2_value_create_map
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_null duckdb_ext_api.duckdb_v2_value_create_null
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_smallint duckdb_ext_api.duckdb_v2_value_create_smallint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_struct duckdb_ext_api.duckdb_v2_value_create_struct
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_time duckdb_ext_api.duckdb_v2_value_create_time
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_time_ns duckdb_ext_api.duckdb_v2_value_create_time_ns
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_time_tz duckdb_ext_api.duckdb_v2_value_create_time_tz
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_timestamp duckdb_ext_api.duckdb_v2_value_create_timestamp
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_timestamp_ms duckdb_ext_api.duckdb_v2_value_create_timestamp_ms
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_timestamp_ns duckdb_ext_api.duckdb_v2_value_create_timestamp_ns
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_timestamp_sec duckdb_ext_api.duckdb_v2_value_create_timestamp_sec
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_timestamp_tz duckdb_ext_api.duckdb_v2_value_create_timestamp_tz
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_timestamp_tz_ns duckdb_ext_api.duckdb_v2_value_create_timestamp_tz_ns
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_tinyint duckdb_ext_api.duckdb_v2_value_create_tinyint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_tuple duckdb_ext_api.duckdb_v2_value_create_tuple
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_type duckdb_ext_api.duckdb_v2_value_create_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_ubigint duckdb_ext_api.duckdb_v2_value_create_ubigint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_uhugeint duckdb_ext_api.duckdb_v2_value_create_uhugeint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_uint duckdb_ext_api.duckdb_v2_value_create_uint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_usmallint duckdb_ext_api.duckdb_v2_value_create_usmallint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_utinyint duckdb_ext_api.duckdb_v2_value_create_utinyint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_uuid duckdb_ext_api.duckdb_v2_value_create_uuid
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_create_varchar duckdb_ext_api.duckdb_v2_value_create_varchar
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_destroy duckdb_ext_api.duckdb_v2_value_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_bigint duckdb_ext_api.duckdb_v2_value_get_bigint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_blob duckdb_ext_api.duckdb_v2_value_get_blob
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_bool duckdb_ext_api.duckdb_v2_value_get_bool
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_child duckdb_ext_api.duckdb_v2_value_get_child
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_child_count duckdb_ext_api.duckdb_v2_value_get_child_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_date duckdb_ext_api.duckdb_v2_value_get_date
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_decimal duckdb_ext_api.duckdb_v2_value_get_decimal
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_double duckdb_ext_api.duckdb_v2_value_get_double
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_float duckdb_ext_api.duckdb_v2_value_get_float
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_hugeint duckdb_ext_api.duckdb_v2_value_get_hugeint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_int duckdb_ext_api.duckdb_v2_value_get_int
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_interval duckdb_ext_api.duckdb_v2_value_get_interval
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_logical_type duckdb_ext_api.duckdb_v2_value_get_logical_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_smallint duckdb_ext_api.duckdb_v2_value_get_smallint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_time duckdb_ext_api.duckdb_v2_value_get_time
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_time_ns duckdb_ext_api.duckdb_v2_value_get_time_ns
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_time_tz duckdb_ext_api.duckdb_v2_value_get_time_tz
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_timestamp duckdb_ext_api.duckdb_v2_value_get_timestamp
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_timestamp_ms duckdb_ext_api.duckdb_v2_value_get_timestamp_ms
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_timestamp_ns duckdb_ext_api.duckdb_v2_value_get_timestamp_ns
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_timestamp_sec duckdb_ext_api.duckdb_v2_value_get_timestamp_sec
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_timestamp_tz duckdb_ext_api.duckdb_v2_value_get_timestamp_tz
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_timestamp_tz_ns duckdb_ext_api.duckdb_v2_value_get_timestamp_tz_ns
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_tinyint duckdb_ext_api.duckdb_v2_value_get_tinyint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_type duckdb_ext_api.duckdb_v2_value_get_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_ubigint duckdb_ext_api.duckdb_v2_value_get_ubigint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_uhugeint duckdb_ext_api.duckdb_v2_value_get_uhugeint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_uint duckdb_ext_api.duckdb_v2_value_get_uint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_usmallint duckdb_ext_api.duckdb_v2_value_get_usmallint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_utinyint duckdb_ext_api.duckdb_v2_value_get_utinyint
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_uuid duckdb_ext_api.duckdb_v2_value_get_uuid
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_get_varchar duckdb_ext_api.duckdb_v2_value_get_varchar
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_is_null duckdb_ext_api.duckdb_v2_value_is_null
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_value_to_string duckdb_ext_api.duckdb_v2_value_to_string
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_constant_set_valid duckdb_ext_api.duckdb_v2_vector_constant_set_valid
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_flat_get_validity_mutable duckdb_ext_api.duckdb_v2_vector_flat_get_validity_mutable
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_flatten duckdb_ext_api.duckdb_v2_vector_flatten
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_get_arena duckdb_ext_api.duckdb_v2_vector_get_arena
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_get_child duckdb_ext_api.duckdb_v2_vector_get_child
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_get_child_count duckdb_ext_api.duckdb_v2_vector_get_child_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_get_data_mutable duckdb_ext_api.duckdb_v2_vector_get_data_mutable
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_get_logical_type duckdb_ext_api.duckdb_v2_vector_get_logical_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_get_size duckdb_ext_api.duckdb_v2_vector_get_size
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_get_value duckdb_ext_api.duckdb_v2_vector_get_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_get_vector_type duckdb_ext_api.duckdb_v2_vector_get_vector_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_get_view duckdb_ext_api.duckdb_v2_vector_get_view
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_make_constant duckdb_ext_api.duckdb_v2_vector_make_constant
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_make_sequence duckdb_ext_api.duckdb_v2_vector_make_sequence
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_reference duckdb_ext_api.duckdb_v2_vector_reference
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_set_null duckdb_ext_api.duckdb_v2_vector_set_null
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_set_size duckdb_ext_api.duckdb_v2_vector_set_size
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_set_value duckdb_ext_api.duckdb_v2_vector_set_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_register_scalar_function duckdb_ext_api.duckdb_v2_connection_register_scalar_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_context_log duckdb_ext_api.duckdb_v2_context_log
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_scalar_function duckdb_ext_api.duckdb_v2_extension_register_scalar_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_signature_add_parameter duckdb_ext_api.duckdb_v2_function_signature_add_parameter
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_signature_set_return_type duckdb_ext_api.duckdb_v2_function_signature_set_return_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_create duckdb_ext_api.duckdb_v2_scalar_function_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_destroy duckdb_ext_api.duckdb_v2_scalar_function_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_exec_get_arg duckdb_ext_api.duckdb_v2_scalar_function_exec_get_arg
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_exec_get_arg_count duckdb_ext_api.duckdb_v2_scalar_function_exec_get_arg_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_exec_get_bind_data duckdb_ext_api.duckdb_v2_scalar_function_exec_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_exec_get_init_data duckdb_ext_api.duckdb_v2_scalar_function_exec_get_init_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_exec_get_result duckdb_ext_api.duckdb_v2_scalar_function_exec_get_result
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_exec_get_row_count duckdb_ext_api.duckdb_v2_scalar_function_exec_get_row_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_exec_get_user_data duckdb_ext_api.duckdb_v2_scalar_function_exec_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_get_signature duckdb_ext_api.duckdb_v2_scalar_function_get_signature
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_init_get_bind_data duckdb_ext_api.duckdb_v2_scalar_function_init_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_init_get_user_data duckdb_ext_api.duckdb_v2_scalar_function_init_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_init_set_init_data duckdb_ext_api.duckdb_v2_scalar_function_init_set_init_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_set_bind_callback duckdb_ext_api.duckdb_v2_scalar_function_set_bind_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_set_exec_callback duckdb_ext_api.duckdb_v2_scalar_function_set_exec_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_set_init_callback duckdb_ext_api.duckdb_v2_scalar_function_set_init_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_set_name duckdb_ext_api.duckdb_v2_scalar_function_set_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_set_user_data duckdb_ext_api.duckdb_v2_scalar_function_set_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_bind_set_return_type                                                              \
	duckdb_ext_api.duckdb_v2_aggregate_function_bind_set_return_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_combine_get_bind_data                                                             \
	duckdb_ext_api.duckdb_v2_aggregate_function_combine_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_combine_get_sources duckdb_ext_api.duckdb_v2_aggregate_function_combine_get_sources
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_combine_get_state_count                                                           \
	duckdb_ext_api.duckdb_v2_aggregate_function_combine_get_state_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_combine_get_targets duckdb_ext_api.duckdb_v2_aggregate_function_combine_get_targets
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_combine_get_user_data                                                             \
	duckdb_ext_api.duckdb_v2_aggregate_function_combine_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_create duckdb_ext_api.duckdb_v2_aggregate_function_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_destroy duckdb_ext_api.duckdb_v2_aggregate_function_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_destroy_get_bind_data                                                             \
	duckdb_ext_api.duckdb_v2_aggregate_function_destroy_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_destroy_get_state_count                                                           \
	duckdb_ext_api.duckdb_v2_aggregate_function_destroy_get_state_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_destroy_get_states duckdb_ext_api.duckdb_v2_aggregate_function_destroy_get_states
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_destroy_get_user_data                                                             \
	duckdb_ext_api.duckdb_v2_aggregate_function_destroy_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_finalize_get_bind_data                                                            \
	duckdb_ext_api.duckdb_v2_aggregate_function_finalize_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_finalize_get_result duckdb_ext_api.duckdb_v2_aggregate_function_finalize_get_result
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_finalize_get_result_offset                                                        \
	duckdb_ext_api.duckdb_v2_aggregate_function_finalize_get_result_offset
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_finalize_get_state_count                                                          \
	duckdb_ext_api.duckdb_v2_aggregate_function_finalize_get_state_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_finalize_get_states duckdb_ext_api.duckdb_v2_aggregate_function_finalize_get_states
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_finalize_get_user_data                                                            \
	duckdb_ext_api.duckdb_v2_aggregate_function_finalize_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_get_signature duckdb_ext_api.duckdb_v2_aggregate_function_get_signature
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_init_get_bind_data duckdb_ext_api.duckdb_v2_aggregate_function_init_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_init_get_state_count                                                              \
	duckdb_ext_api.duckdb_v2_aggregate_function_init_get_state_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_init_get_states duckdb_ext_api.duckdb_v2_aggregate_function_init_get_states
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_init_get_user_data duckdb_ext_api.duckdb_v2_aggregate_function_init_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_set_bind_callback duckdb_ext_api.duckdb_v2_aggregate_function_set_bind_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_set_combine_callback                                                              \
	duckdb_ext_api.duckdb_v2_aggregate_function_set_combine_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_set_destroy_callback                                                              \
	duckdb_ext_api.duckdb_v2_aggregate_function_set_destroy_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_set_finalize_callback                                                             \
	duckdb_ext_api.duckdb_v2_aggregate_function_set_finalize_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_set_init_callback duckdb_ext_api.duckdb_v2_aggregate_function_set_init_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_set_name duckdb_ext_api.duckdb_v2_aggregate_function_set_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_set_size_callback duckdb_ext_api.duckdb_v2_aggregate_function_set_size_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_set_update_callback duckdb_ext_api.duckdb_v2_aggregate_function_set_update_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_set_user_data duckdb_ext_api.duckdb_v2_aggregate_function_set_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_size_get_bind_data duckdb_ext_api.duckdb_v2_aggregate_function_size_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_size_get_user_data duckdb_ext_api.duckdb_v2_aggregate_function_size_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_size_set_state_size duckdb_ext_api.duckdb_v2_aggregate_function_size_set_state_size
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_update_get_arg duckdb_ext_api.duckdb_v2_aggregate_function_update_get_arg
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_update_get_arg_count                                                              \
	duckdb_ext_api.duckdb_v2_aggregate_function_update_get_arg_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_update_get_bind_data                                                              \
	duckdb_ext_api.duckdb_v2_aggregate_function_update_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_update_get_row_count                                                              \
	duckdb_ext_api.duckdb_v2_aggregate_function_update_get_row_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_update_get_states duckdb_ext_api.duckdb_v2_aggregate_function_update_get_states
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_update_get_user_data                                                              \
	duckdb_ext_api.duckdb_v2_aggregate_function_update_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_register_aggregate_function duckdb_ext_api.duckdb_v2_connection_register_aggregate_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_aggregate_function duckdb_ext_api.duckdb_v2_extension_register_aggregate_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_set_property duckdb_ext_api.duckdb_v2_aggregate_function_set_property
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_set_property duckdb_ext_api.duckdb_v2_scalar_function_set_property
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_register_table_function duckdb_ext_api.duckdb_v2_connection_register_table_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_table_function duckdb_ext_api.duckdb_v2_extension_register_table_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_bind_add_result_column duckdb_ext_api.duckdb_v2_table_function_bind_add_result_column
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_bind_set_cardinality duckdb_ext_api.duckdb_v2_table_function_bind_set_cardinality
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_create duckdb_ext_api.duckdb_v2_table_function_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_destroy duckdb_ext_api.duckdb_v2_table_function_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_exec_get_bind_data duckdb_ext_api.duckdb_v2_table_function_exec_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_exec_get_global_state duckdb_ext_api.duckdb_v2_table_function_exec_get_global_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_exec_get_local_state duckdb_ext_api.duckdb_v2_table_function_exec_get_local_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_exec_get_output_chunk duckdb_ext_api.duckdb_v2_table_function_exec_get_output_chunk
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_exec_get_user_data duckdb_ext_api.duckdb_v2_table_function_exec_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_get_signature duckdb_ext_api.duckdb_v2_table_function_get_signature
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_global_get_bind_data                                                             \
	duckdb_ext_api.duckdb_v2_table_function_init_global_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_global_get_user_data                                                             \
	duckdb_ext_api.duckdb_v2_table_function_init_global_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_global_set_global_state                                                          \
	duckdb_ext_api.duckdb_v2_table_function_init_global_set_global_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_global_set_max_threads                                                           \
	duckdb_ext_api.duckdb_v2_table_function_init_global_set_max_threads
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_local_get_bind_data                                                              \
	duckdb_ext_api.duckdb_v2_table_function_init_local_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_local_get_global_state                                                           \
	duckdb_ext_api.duckdb_v2_table_function_init_local_get_global_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_local_get_user_data                                                              \
	duckdb_ext_api.duckdb_v2_table_function_init_local_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_local_set_local_state                                                            \
	duckdb_ext_api.duckdb_v2_table_function_init_local_set_local_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_progress_get_bind_data duckdb_ext_api.duckdb_v2_table_function_progress_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_progress_get_global_state                                                             \
	duckdb_ext_api.duckdb_v2_table_function_progress_get_global_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_progress_get_user_data duckdb_ext_api.duckdb_v2_table_function_progress_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_progress_set_progress duckdb_ext_api.duckdb_v2_table_function_progress_set_progress
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_bind_callback duckdb_ext_api.duckdb_v2_table_function_set_bind_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_exec_callback duckdb_ext_api.duckdb_v2_table_function_set_exec_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_init_global_callback                                                              \
	duckdb_ext_api.duckdb_v2_table_function_set_init_global_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_init_local_callback duckdb_ext_api.duckdb_v2_table_function_set_init_local_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_name duckdb_ext_api.duckdb_v2_table_function_set_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_progress_callback duckdb_ext_api.duckdb_v2_table_function_set_progress_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_user_data duckdb_ext_api.duckdb_v2_table_function_set_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_create duckdb_ext_api.duckdb_v2_cast_function_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_destroy duckdb_ext_api.duckdb_v2_cast_function_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_exec_get_input duckdb_ext_api.duckdb_v2_cast_function_exec_get_input
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_exec_get_mode duckdb_ext_api.duckdb_v2_cast_function_exec_get_mode
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_exec_get_output duckdb_ext_api.duckdb_v2_cast_function_exec_get_output
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_exec_get_row_count duckdb_ext_api.duckdb_v2_cast_function_exec_get_row_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_exec_get_user_data duckdb_ext_api.duckdb_v2_cast_function_exec_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_set_exec_callback duckdb_ext_api.duckdb_v2_cast_function_set_exec_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_set_implicit_cast_cost duckdb_ext_api.duckdb_v2_cast_function_set_implicit_cast_cost
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_set_source_type duckdb_ext_api.duckdb_v2_cast_function_set_source_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_set_target_type duckdb_ext_api.duckdb_v2_cast_function_set_target_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_cast_function_set_user_data duckdb_ext_api.duckdb_v2_cast_function_set_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_data_collection_clear duckdb_ext_api.duckdb_v2_column_data_collection_clear
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_register_cast_function duckdb_ext_api.duckdb_v2_connection_register_cast_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_register_custom_type duckdb_ext_api.duckdb_v2_connection_register_custom_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_register_replacement_scan duckdb_ext_api.duckdb_v2_connection_register_replacement_scan
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_context_get_file_system duckdb_ext_api.duckdb_v2_context_get_file_system
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_type_create duckdb_ext_api.duckdb_v2_custom_type_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_type_destroy duckdb_ext_api.duckdb_v2_custom_type_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_type_set_base_type duckdb_ext_api.duckdb_v2_custom_type_set_base_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_type_set_name duckdb_ext_api.duckdb_v2_custom_type_set_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_cast_function duckdb_ext_api.duckdb_v2_extension_register_cast_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_custom_type duckdb_ext_api.duckdb_v2_extension_register_custom_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_replacement_scan duckdb_ext_api.duckdb_v2_extension_register_replacement_scan
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_close duckdb_ext_api.duckdb_v2_file_close
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_destroy duckdb_ext_api.duckdb_v2_file_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_open_options_create duckdb_ext_api.duckdb_v2_file_open_options_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_open_options_destroy duckdb_ext_api.duckdb_v2_file_open_options_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_open_options_set_flag duckdb_ext_api.duckdb_v2_file_open_options_set_flag
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_open_options_set_value duckdb_ext_api.duckdb_v2_file_open_options_set_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_read duckdb_ext_api.duckdb_v2_file_read
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_read_at duckdb_ext_api.duckdb_v2_file_read_at
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_seek duckdb_ext_api.duckdb_v2_file_seek
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_size duckdb_ext_api.duckdb_v2_file_size
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_sync duckdb_ext_api.duckdb_v2_file_sync
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_system_open duckdb_ext_api.duckdb_v2_file_system_open
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_tell duckdb_ext_api.duckdb_v2_file_tell
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_write duckdb_ext_api.duckdb_v2_file_write
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_write_at duckdb_ext_api.duckdb_v2_file_write_at
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_register_replacement_scan duckdb_ext_api.duckdb_v2_instance_register_replacement_scan
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_qname_create duckdb_ext_api.duckdb_v2_qname_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_qname_destroy duckdb_ext_api.duckdb_v2_qname_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_qname_equals duckdb_ext_api.duckdb_v2_qname_equals
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_qname_get_part duckdb_ext_api.duckdb_v2_qname_get_part
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_qname_get_part_count duckdb_ext_api.duckdb_v2_qname_get_part_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_qname_hash duckdb_ext_api.duckdb_v2_qname_hash
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_qname_parse duckdb_ext_api.duckdb_v2_qname_parse
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_qname_render duckdb_ext_api.duckdb_v2_qname_render
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_add_argument duckdb_ext_api.duckdb_v2_replacement_scan_add_argument
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_add_named_argument duckdb_ext_api.duckdb_v2_replacement_scan_add_named_argument
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_create duckdb_ext_api.duckdb_v2_replacement_scan_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_destroy duckdb_ext_api.duckdb_v2_replacement_scan_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_get_name duckdb_ext_api.duckdb_v2_replacement_scan_get_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_get_user_data duckdb_ext_api.duckdb_v2_replacement_scan_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_set_alias duckdb_ext_api.duckdb_v2_replacement_scan_set_alias
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_set_callback duckdb_ext_api.duckdb_v2_replacement_scan_set_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_set_collection duckdb_ext_api.duckdb_v2_replacement_scan_set_collection
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_set_function_name duckdb_ext_api.duckdb_v2_replacement_scan_set_function_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_set_subquery duckdb_ext_api.duckdb_v2_replacement_scan_set_subquery
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_replacement_scan_set_user_data duckdb_ext_api.duckdb_v2_replacement_scan_set_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_exporter_append duckdb_ext_api.duckdb_v2_arrow_exporter_append
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_exporter_create duckdb_ext_api.duckdb_v2_arrow_exporter_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_exporter_destroy duckdb_ext_api.duckdb_v2_arrow_exporter_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_exporter_get_schema duckdb_ext_api.duckdb_v2_arrow_exporter_get_schema
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_exporter_next_array duckdb_ext_api.duckdb_v2_arrow_exporter_next_array
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_importer_append duckdb_ext_api.duckdb_v2_arrow_importer_append
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_importer_create duckdb_ext_api.duckdb_v2_arrow_importer_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_importer_destroy duckdb_ext_api.duckdb_v2_arrow_importer_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_importer_get_schema duckdb_ext_api.duckdb_v2_arrow_importer_get_schema
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_importer_next_chunk duckdb_ext_api.duckdb_v2_arrow_importer_next_chunk
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_description_destroy duckdb_ext_api.duckdb_v2_column_description_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_description_get_name duckdb_ext_api.duckdb_v2_column_description_get_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_description_get_type duckdb_ext_api.duckdb_v2_column_description_get_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_description_has_default duckdb_ext_api.duckdb_v2_column_description_has_default
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_column_description_has_generated duckdb_ext_api.duckdb_v2_column_description_has_generated
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_describe_table duckdb_ext_api.duckdb_v2_connection_describe_table
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_register_copy_function duckdb_ext_api.duckdb_v2_connection_register_copy_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_bind_get_column_count duckdb_ext_api.duckdb_v2_copy_from_bind_get_column_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_bind_get_column_name duckdb_ext_api.duckdb_v2_copy_from_bind_get_column_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_bind_get_column_type duckdb_ext_api.duckdb_v2_copy_from_bind_get_column_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_bind_get_file_path duckdb_ext_api.duckdb_v2_copy_from_bind_get_file_path
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_bind_get_option_count duckdb_ext_api.duckdb_v2_copy_from_bind_get_option_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_bind_get_option_name duckdb_ext_api.duckdb_v2_copy_from_bind_get_option_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_bind_get_option_value duckdb_ext_api.duckdb_v2_copy_from_bind_get_option_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_bind_get_user_data duckdb_ext_api.duckdb_v2_copy_from_bind_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_bind_set_bind_data duckdb_ext_api.duckdb_v2_copy_from_bind_set_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_bind_set_cardinality duckdb_ext_api.duckdb_v2_copy_from_bind_set_cardinality
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_exec_get_bind_data duckdb_ext_api.duckdb_v2_copy_from_exec_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_exec_get_global_state duckdb_ext_api.duckdb_v2_copy_from_exec_get_global_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_exec_get_local_state duckdb_ext_api.duckdb_v2_copy_from_exec_get_local_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_exec_get_output_chunk duckdb_ext_api.duckdb_v2_copy_from_exec_get_output_chunk
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_exec_get_user_data duckdb_ext_api.duckdb_v2_copy_from_exec_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_init_global_get_bind_data duckdb_ext_api.duckdb_v2_copy_from_init_global_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_init_global_get_user_data duckdb_ext_api.duckdb_v2_copy_from_init_global_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_init_global_set_global_state duckdb_ext_api.duckdb_v2_copy_from_init_global_set_global_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_init_global_set_max_threads duckdb_ext_api.duckdb_v2_copy_from_init_global_set_max_threads
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_init_local_get_bind_data duckdb_ext_api.duckdb_v2_copy_from_init_local_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_init_local_get_global_state duckdb_ext_api.duckdb_v2_copy_from_init_local_get_global_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_init_local_get_user_data duckdb_ext_api.duckdb_v2_copy_from_init_local_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_init_local_set_local_state duckdb_ext_api.duckdb_v2_copy_from_init_local_set_local_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_progress_get_bind_data duckdb_ext_api.duckdb_v2_copy_from_progress_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_progress_get_global_state duckdb_ext_api.duckdb_v2_copy_from_progress_get_global_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_progress_get_user_data duckdb_ext_api.duckdb_v2_copy_from_progress_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_progress_set_progress duckdb_ext_api.duckdb_v2_copy_from_progress_set_progress
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_set_bind_callback duckdb_ext_api.duckdb_v2_copy_from_set_bind_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_set_exec_callback duckdb_ext_api.duckdb_v2_copy_from_set_exec_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_set_init_global_callback duckdb_ext_api.duckdb_v2_copy_from_set_init_global_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_set_init_local_callback duckdb_ext_api.duckdb_v2_copy_from_set_init_local_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_from_set_progress_callback duckdb_ext_api.duckdb_v2_copy_from_set_progress_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_function_create duckdb_ext_api.duckdb_v2_copy_function_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_function_destroy duckdb_ext_api.duckdb_v2_copy_function_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_function_set_name duckdb_ext_api.duckdb_v2_copy_function_set_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_function_set_user_data duckdb_ext_api.duckdb_v2_copy_function_set_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_batch_get_bind_data duckdb_ext_api.duckdb_v2_copy_to_batch_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_batch_get_init_data duckdb_ext_api.duckdb_v2_copy_to_batch_get_init_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_batch_get_user_data duckdb_ext_api.duckdb_v2_copy_to_batch_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_batch_set_batch_data duckdb_ext_api.duckdb_v2_copy_to_batch_set_batch_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_batch_size_get_bind_data duckdb_ext_api.duckdb_v2_copy_to_batch_size_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_batch_size_get_user_data duckdb_ext_api.duckdb_v2_copy_to_batch_size_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_batch_size_set_target duckdb_ext_api.duckdb_v2_copy_to_batch_size_set_target
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_batch_take_input duckdb_ext_api.duckdb_v2_copy_to_batch_take_input
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_bind_get_column_count duckdb_ext_api.duckdb_v2_copy_to_bind_get_column_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_bind_get_column_name duckdb_ext_api.duckdb_v2_copy_to_bind_get_column_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_bind_get_column_type duckdb_ext_api.duckdb_v2_copy_to_bind_get_column_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_bind_get_file_path duckdb_ext_api.duckdb_v2_copy_to_bind_get_file_path
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_bind_get_option_count duckdb_ext_api.duckdb_v2_copy_to_bind_get_option_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_bind_get_option_name duckdb_ext_api.duckdb_v2_copy_to_bind_get_option_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_bind_get_option_value duckdb_ext_api.duckdb_v2_copy_to_bind_get_option_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_bind_get_user_data duckdb_ext_api.duckdb_v2_copy_to_bind_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_bind_set_bind_data duckdb_ext_api.duckdb_v2_copy_to_bind_set_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_finalize_get_bind_data duckdb_ext_api.duckdb_v2_copy_to_finalize_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_finalize_get_init_data duckdb_ext_api.duckdb_v2_copy_to_finalize_get_init_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_finalize_get_user_data duckdb_ext_api.duckdb_v2_copy_to_finalize_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_flush_get_batch_data duckdb_ext_api.duckdb_v2_copy_to_flush_get_batch_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_flush_get_bind_data duckdb_ext_api.duckdb_v2_copy_to_flush_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_flush_get_init_data duckdb_ext_api.duckdb_v2_copy_to_flush_get_init_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_flush_get_user_data duckdb_ext_api.duckdb_v2_copy_to_flush_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_init_get_bind_data duckdb_ext_api.duckdb_v2_copy_to_init_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_init_get_file_path duckdb_ext_api.duckdb_v2_copy_to_init_get_file_path
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_init_get_user_data duckdb_ext_api.duckdb_v2_copy_to_init_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_init_set_init_data duckdb_ext_api.duckdb_v2_copy_to_init_set_init_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_set_batch_callback duckdb_ext_api.duckdb_v2_copy_to_set_batch_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_set_batch_size_callback duckdb_ext_api.duckdb_v2_copy_to_set_batch_size_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_set_bind_callback duckdb_ext_api.duckdb_v2_copy_to_set_bind_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_set_finalize_callback duckdb_ext_api.duckdb_v2_copy_to_set_finalize_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_set_flush_callback duckdb_ext_api.duckdb_v2_copy_to_set_flush_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_set_init_callback duckdb_ext_api.duckdb_v2_copy_to_set_init_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_expression_cast_get_mode duckdb_ext_api.duckdb_v2_expression_cast_get_mode
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_expression_column_ref_get_index duckdb_ext_api.duckdb_v2_expression_column_ref_get_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_expression_constant_get_value duckdb_ext_api.duckdb_v2_expression_constant_get_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_expression_function_get_name duckdb_ext_api.duckdb_v2_expression_function_get_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_expression_function_get_qname duckdb_ext_api.duckdb_v2_expression_function_get_qname
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_expression_get_child duckdb_ext_api.duckdb_v2_expression_get_child
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_expression_get_child_count duckdb_ext_api.duckdb_v2_expression_get_child_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_expression_get_return_type duckdb_ext_api.duckdb_v2_expression_get_return_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_expression_get_type duckdb_ext_api.duckdb_v2_expression_get_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_copy_function duckdb_ext_api.duckdb_v2_extension_register_copy_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_identifier_render_quoted duckdb_ext_api.duckdb_v2_identifier_render_quoted
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_prepared_statement_create duckdb_ext_api.duckdb_v2_prepared_statement_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_prepared_statement_destroy duckdb_ext_api.duckdb_v2_prepared_statement_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_prepared_statement_execute duckdb_ext_api.duckdb_v2_prepared_statement_execute
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_prepared_statement_reuses_plan duckdb_ext_api.duckdb_v2_prepared_statement_reuses_plan
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_description_destroy duckdb_ext_api.duckdb_v2_table_description_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_description_get_column duckdb_ext_api.duckdb_v2_table_description_get_column
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_description_get_column_count duckdb_ext_api.duckdb_v2_table_description_get_column_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_description_get_qname duckdb_ext_api.duckdb_v2_table_description_get_qname
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_description_is_readonly duckdb_ext_api.duckdb_v2_table_description_is_readonly
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_exec_get_column_count duckdb_ext_api.duckdb_v2_table_function_exec_get_column_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_exec_get_column_index duckdb_ext_api.duckdb_v2_table_function_exec_get_column_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_filter_pushdown_accept duckdb_ext_api.duckdb_v2_table_function_filter_pushdown_accept
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_filter_pushdown_get_bind_data                                                         \
	duckdb_ext_api.duckdb_v2_table_function_filter_pushdown_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_filter_pushdown_get_column_count                                                      \
	duckdb_ext_api.duckdb_v2_table_function_filter_pushdown_get_column_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_filter_pushdown_get_column_index                                                      \
	duckdb_ext_api.duckdb_v2_table_function_filter_pushdown_get_column_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_filter_pushdown_get_filter                                                            \
	duckdb_ext_api.duckdb_v2_table_function_filter_pushdown_get_filter
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_filter_pushdown_get_filter_count                                                      \
	duckdb_ext_api.duckdb_v2_table_function_filter_pushdown_get_filter_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_filter_pushdown_get_user_data                                                         \
	duckdb_ext_api.duckdb_v2_table_function_filter_pushdown_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_global_get_column_count                                                          \
	duckdb_ext_api.duckdb_v2_table_function_init_global_get_column_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_global_get_column_index                                                          \
	duckdb_ext_api.duckdb_v2_table_function_init_global_get_column_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_local_get_column_count                                                           \
	duckdb_ext_api.duckdb_v2_table_function_init_local_get_column_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_init_local_get_column_index                                                           \
	duckdb_ext_api.duckdb_v2_table_function_init_local_get_column_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_filter_pushdown_callback                                                          \
	duckdb_ext_api.duckdb_v2_table_function_set_filter_pushdown_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_projection_pushdown duckdb_ext_api.duckdb_v2_table_function_set_projection_pushdown
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_sql_statement_get_parameter_count duckdb_ext_api.duckdb_v2_sql_statement_get_parameter_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_sql_statement_get_parameter_name duckdb_ext_api.duckdb_v2_sql_statement_get_parameter_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_sql_statement_get_text duckdb_ext_api.duckdb_v2_sql_statement_get_text
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_sql_statement_get_type duckdb_ext_api.duckdb_v2_sql_statement_get_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_token_iterator_destroy duckdb_ext_api.duckdb_v2_token_iterator_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_token_iterator_ends_unterminated duckdb_ext_api.duckdb_v2_token_iterator_ends_unterminated
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_token_iterator_next duckdb_ext_api.duckdb_v2_token_iterator_next
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_tokenize_sql duckdb_ext_api.duckdb_v2_tokenize_sql
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_attach_options_create duckdb_ext_api.duckdb_v2_attach_options_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_attach_options_destroy duckdb_ext_api.duckdb_v2_attach_options_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_attach_options_set duckdb_ext_api.duckdb_v2_attach_options_set
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_set_default duckdb_ext_api.duckdb_v2_instance_set_default
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partition_data_get_bind_data                                                          \
	duckdb_ext_api.duckdb_v2_table_function_partition_data_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partition_data_get_global_state                                                       \
	duckdb_ext_api.duckdb_v2_table_function_partition_data_get_global_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partition_data_get_local_state                                                        \
	duckdb_ext_api.duckdb_v2_table_function_partition_data_get_local_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partition_data_get_partition_column_count                                             \
	duckdb_ext_api.duckdb_v2_table_function_partition_data_get_partition_column_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partition_data_get_partition_column_index                                             \
	duckdb_ext_api.duckdb_v2_table_function_partition_data_get_partition_column_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partition_data_get_user_data                                                          \
	duckdb_ext_api.duckdb_v2_table_function_partition_data_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partition_data_requires_batch_index                                                   \
	duckdb_ext_api.duckdb_v2_table_function_partition_data_requires_batch_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partition_data_requires_partition_columns                                             \
	duckdb_ext_api.duckdb_v2_table_function_partition_data_requires_partition_columns
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partition_data_set_batch_index                                                        \
	duckdb_ext_api.duckdb_v2_table_function_partition_data_set_batch_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partition_data_set_partition_value                                                    \
	duckdb_ext_api.duckdb_v2_table_function_partition_data_set_partition_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partitioning_get_bind_data                                                            \
	duckdb_ext_api.duckdb_v2_table_function_partitioning_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partitioning_get_partition_column_count                                               \
	duckdb_ext_api.duckdb_v2_table_function_partitioning_get_partition_column_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partitioning_get_partition_column_index                                               \
	duckdb_ext_api.duckdb_v2_table_function_partitioning_get_partition_column_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partitioning_get_user_data                                                            \
	duckdb_ext_api.duckdb_v2_table_function_partitioning_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_partitioning_set_partition_info                                                       \
	duckdb_ext_api.duckdb_v2_table_function_partitioning_set_partition_info
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_partition_data_callback                                                           \
	duckdb_ext_api.duckdb_v2_table_function_set_partition_data_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_partitioning_callback                                                             \
	duckdb_ext_api.duckdb_v2_table_function_set_partitioning_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_validate_utf8 duckdb_ext_api.duckdb_v2_validate_utf8
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_register_multi_file_function                                                              \
	duckdb_ext_api.duckdb_v2_connection_register_multi_file_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_set_statistics_callback duckdb_ext_api.duckdb_v2_copy_to_set_statistics_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_statistics_get_bind_data duckdb_ext_api.duckdb_v2_copy_to_statistics_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_statistics_get_init_data duckdb_ext_api.duckdb_v2_copy_to_statistics_get_init_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_statistics_get_user_data duckdb_ext_api.duckdb_v2_copy_to_statistics_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_statistics_set_file_size duckdb_ext_api.duckdb_v2_copy_to_statistics_set_file_size
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_to_statistics_set_row_count duckdb_ext_api.duckdb_v2_copy_to_statistics_set_row_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_data_chunk_get_capacity duckdb_ext_api.duckdb_v2_data_chunk_get_capacity
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_multi_file_function duckdb_ext_api.duckdb_v2_extension_register_multi_file_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_multi_file_function_create duckdb_ext_api.duckdb_v2_multi_file_function_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_multi_file_function_destroy duckdb_ext_api.duckdb_v2_multi_file_function_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_multi_file_function_set_file_extension duckdb_ext_api.duckdb_v2_multi_file_function_set_file_extension
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_multi_file_function_set_name duckdb_ext_api.duckdb_v2_multi_file_function_set_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_multi_file_function_set_reader_type duckdb_ext_api.duckdb_v2_multi_file_function_set_reader_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_multi_file_function_set_single_file_function                                                         \
	duckdb_ext_api.duckdb_v2_multi_file_function_set_single_file_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_claim_batch_get_bind_data                                                             \
	duckdb_ext_api.duckdb_v2_table_function_claim_batch_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_claim_batch_get_global_state                                                          \
	duckdb_ext_api.duckdb_v2_table_function_claim_batch_get_global_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_claim_batch_get_local_state                                                           \
	duckdb_ext_api.duckdb_v2_table_function_claim_batch_get_local_state
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_claim_batch_get_user_data                                                             \
	duckdb_ext_api.duckdb_v2_table_function_claim_batch_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_claim_batch_set_claimed duckdb_ext_api.duckdb_v2_table_function_claim_batch_set_claimed
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_claim_batch_callback                                                              \
	duckdb_ext_api.duckdb_v2_table_function_set_claim_batch_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_bind_get_arg_count duckdb_ext_api.duckdb_v2_function_bind_get_arg_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_bind_get_arg_index duckdb_ext_api.duckdb_v2_function_bind_get_arg_index
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_bind_get_arg_name duckdb_ext_api.duckdb_v2_function_bind_get_arg_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_bind_get_arg_type duckdb_ext_api.duckdb_v2_function_bind_get_arg_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_bind_get_arg_value duckdb_ext_api.duckdb_v2_function_bind_get_arg_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_bind_get_user_data duckdb_ext_api.duckdb_v2_function_bind_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_bind_set_bind_data duckdb_ext_api.duckdb_v2_function_bind_set_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_bind_set_order_preservation                                                           \
	duckdb_ext_api.duckdb_v2_table_function_bind_set_order_preservation
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_result_destroy duckdb_ext_api.duckdb_v2_arrow_result_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_result_drain duckdb_ext_api.duckdb_v2_arrow_result_drain
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_result_fetch_array duckdb_ext_api.duckdb_v2_arrow_result_fetch_array
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_result_get_result_type duckdb_ext_api.duckdb_v2_arrow_result_get_result_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_result_get_schema duckdb_ext_api.duckdb_v2_arrow_result_get_schema
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_result_get_statement_type duckdb_ext_api.duckdb_v2_arrow_result_get_statement_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_result_step duckdb_ext_api.duckdb_v2_arrow_result_step
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_result_to_arrow_c_stream duckdb_ext_api.duckdb_v2_arrow_result_to_arrow_c_stream
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_arrow_result_wait duckdb_ext_api.duckdb_v2_arrow_result_wait
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_prepared_statement_execute_arrow duckdb_ext_api.duckdb_v2_prepared_statement_execute_arrow
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_statement_execute_arrow duckdb_ext_api.duckdb_v2_statement_execute_arrow
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_resolve_types_set_return_type                                                        \
	duckdb_ext_api.duckdb_v2_scalar_function_resolve_types_set_return_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_set_resolve_types_callback                                                           \
	duckdb_ext_api.duckdb_v2_scalar_function_set_resolve_types_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_get_bind_info_get_bind_data                                                           \
	duckdb_ext_api.duckdb_v2_table_function_get_bind_info_get_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_get_bind_info_get_user_data                                                           \
	duckdb_ext_api.duckdb_v2_table_function_get_bind_info_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_get_bind_info_set_column_identifier                                                   \
	duckdb_ext_api.duckdb_v2_table_function_get_bind_info_set_column_identifier
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_get_bind_info_set_option                                                              \
	duckdb_ext_api.duckdb_v2_table_function_get_bind_info_set_option
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_set_get_bind_info_callback                                                            \
	duckdb_ext_api.duckdb_v2_table_function_set_get_bind_info_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_get_factory duckdb_ext_api.duckdb_v2_connection_get_factory
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_context_get_factory duckdb_ext_api.duckdb_v2_context_get_factory
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_get_factory duckdb_ext_api.duckdb_v2_instance_get_factory
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_bind_set_bind_data duckdb_ext_api.duckdb_v2_scalar_function_bind_set_bind_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_config_get_option_value duckdb_ext_api.duckdb_v2_config_get_option_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_config_set_option_text duckdb_ext_api.duckdb_v2_config_set_option_text
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_config_set_option_value duckdb_ext_api.duckdb_v2_config_set_option_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_get_config duckdb_ext_api.duckdb_v2_connection_get_config
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_get_file_system duckdb_ext_api.duckdb_v2_connection_get_file_system
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_log duckdb_ext_api.duckdb_v2_connection_log
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_context_get_config duckdb_ext_api.duckdb_v2_context_get_config
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_get_config duckdb_ext_api.duckdb_v2_instance_get_config
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_get_file_system duckdb_ext_api.duckdb_v2_instance_get_file_system
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_log duckdb_ext_api.duckdb_v2_instance_log
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_option_get_default_scope duckdb_ext_api.duckdb_v2_option_get_default_scope
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_option_supports_scope duckdb_ext_api.duckdb_v2_option_supports_scope
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_aggregate_function_get_docs duckdb_ext_api.duckdb_v2_aggregate_function_get_docs
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_register_pragma_function duckdb_ext_api.duckdb_v2_connection_register_pragma_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_pragma_function duckdb_ext_api.duckdb_v2_extension_register_pragma_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_factory_create_common_type duckdb_ext_api.duckdb_v2_factory_create_common_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_docs_add_category duckdb_ext_api.duckdb_v2_function_docs_add_category
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_docs_add_example duckdb_ext_api.duckdb_v2_function_docs_add_example
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_function_docs_set_description duckdb_ext_api.duckdb_v2_function_docs_set_description
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_pragma_function_create duckdb_ext_api.duckdb_v2_pragma_function_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_pragma_function_destroy duckdb_ext_api.duckdb_v2_pragma_function_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_pragma_function_get_docs duckdb_ext_api.duckdb_v2_pragma_function_get_docs
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_pragma_function_get_signature duckdb_ext_api.duckdb_v2_pragma_function_get_signature
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_pragma_function_query_set_query duckdb_ext_api.duckdb_v2_pragma_function_query_set_query
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_pragma_function_set_exec_callback duckdb_ext_api.duckdb_v2_pragma_function_set_exec_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_pragma_function_set_name duckdb_ext_api.duckdb_v2_pragma_function_set_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_pragma_function_set_query_callback duckdb_ext_api.duckdb_v2_pragma_function_set_query_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_pragma_function_set_user_data duckdb_ext_api.duckdb_v2_pragma_function_set_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_scalar_function_get_docs duckdb_ext_api.duckdb_v2_scalar_function_get_docs
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_table_function_get_docs duckdb_ext_api.duckdb_v2_table_function_get_docs
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_register_custom_option duckdb_ext_api.duckdb_v2_connection_register_custom_option
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_create duckdb_ext_api.duckdb_v2_custom_option_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_destroy duckdb_ext_api.duckdb_v2_custom_option_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_set_default_scope duckdb_ext_api.duckdb_v2_custom_option_set_default_scope
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_set_default_value duckdb_ext_api.duckdb_v2_custom_option_set_default_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_set_description duckdb_ext_api.duckdb_v2_custom_option_set_description
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_set_name duckdb_ext_api.duckdb_v2_custom_option_set_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_set_supports_scope duckdb_ext_api.duckdb_v2_custom_option_set_supports_scope
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_set_type duckdb_ext_api.duckdb_v2_custom_option_set_type
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_set_update_callback duckdb_ext_api.duckdb_v2_custom_option_set_update_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_set_user_data duckdb_ext_api.duckdb_v2_custom_option_set_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_update_get_scope duckdb_ext_api.duckdb_v2_custom_option_update_get_scope
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_update_get_user_data duckdb_ext_api.duckdb_v2_custom_option_update_get_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_update_get_value duckdb_ext_api.duckdb_v2_custom_option_update_get_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_update_is_reset duckdb_ext_api.duckdb_v2_custom_option_update_is_reset
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_custom_option_update_set_value duckdb_ext_api.duckdb_v2_custom_option_update_set_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_custom_option duckdb_ext_api.duckdb_v2_extension_register_custom_option
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_log_sink duckdb_ext_api.duckdb_v2_extension_register_log_sink
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_extension_register_macro_function duckdb_ext_api.duckdb_v2_extension_register_macro_function
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_system_path_exists duckdb_ext_api.duckdb_v2_file_system_path_exists
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_system_path_expand duckdb_ext_api.duckdb_v2_file_system_path_expand
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_system_path_is_remote duckdb_ext_api.duckdb_v2_file_system_path_is_remote
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_instance_register_log_sink duckdb_ext_api.duckdb_v2_instance_register_log_sink
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_log_sink_create duckdb_ext_api.duckdb_v2_log_sink_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_log_sink_destroy duckdb_ext_api.duckdb_v2_log_sink_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_log_sink_set_flush_callback duckdb_ext_api.duckdb_v2_log_sink_set_flush_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_log_sink_set_name duckdb_ext_api.duckdb_v2_log_sink_set_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_log_sink_set_user_data duckdb_ext_api.duckdb_v2_log_sink_set_user_data
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_log_sink_set_write_callback duckdb_ext_api.duckdb_v2_log_sink_set_write_callback
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_log_sink_write_info_get_connection_id duckdb_ext_api.duckdb_v2_log_sink_write_info_get_connection_id
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_log_sink_write_info_get_query_id duckdb_ext_api.duckdb_v2_log_sink_write_info_get_query_id
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_log_sink_write_info_get_thread_id duckdb_ext_api.duckdb_v2_log_sink_write_info_get_thread_id
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_log_sink_write_info_get_transaction_id duckdb_ext_api.duckdb_v2_log_sink_write_info_get_transaction_id
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_macro_function_create duckdb_ext_api.duckdb_v2_macro_function_create
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_macro_function_destroy duckdb_ext_api.duckdb_v2_macro_function_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_macro_function_get_docs duckdb_ext_api.duckdb_v2_macro_function_get_docs
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_macro_function_get_signature duckdb_ext_api.duckdb_v2_macro_function_get_signature
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_macro_function_set_body duckdb_ext_api.duckdb_v2_macro_function_set_body
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_macro_function_set_name duckdb_ext_api.duckdb_v2_macro_function_set_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_vector_cast duckdb_ext_api.duckdb_v2_vector_cast
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_enable_profiling duckdb_ext_api.duckdb_v2_connection_enable_profiling
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_connection_get_query_metrics duckdb_ext_api.duckdb_v2_connection_get_query_metrics
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_copy_function_set_file_extension duckdb_ext_api.duckdb_v2_copy_function_set_file_extension
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_data_chunk_clear duckdb_ext_api.duckdb_v2_data_chunk_clear
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_system_path_glob duckdb_ext_api.duckdb_v2_file_system_path_glob
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_system_path_move duckdb_ext_api.duckdb_v2_file_system_path_move
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_file_system_path_remove duckdb_ext_api.duckdb_v2_file_system_path_remove
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_query_metrics_destroy duckdb_ext_api.duckdb_v2_query_metrics_destroy
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_query_metrics_get_root duckdb_ext_api.duckdb_v2_query_metrics_get_root
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_query_metrics_node_get_child duckdb_ext_api.duckdb_v2_query_metrics_node_get_child
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_query_metrics_node_get_child_count duckdb_ext_api.duckdb_v2_query_metrics_node_get_child_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_query_metrics_node_get_metric duckdb_ext_api.duckdb_v2_query_metrics_node_get_metric
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_query_metrics_node_get_metric_count duckdb_ext_api.duckdb_v2_query_metrics_node_get_metric_count
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_query_metrics_node_get_metric_name duckdb_ext_api.duckdb_v2_query_metrics_node_get_metric_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_query_metrics_node_get_metric_value duckdb_ext_api.duckdb_v2_query_metrics_node_get_metric_value
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_query_metrics_node_get_name duckdb_ext_api.duckdb_v2_query_metrics_node_get_name
#endif
#if DUCKDB_V2_API_ALLOW_UNSTABLE
#define duckdb_v2_statement_add_collection duckdb_ext_api.duckdb_v2_statement_add_collection
#endif
// capigen:end appended
#endif // DUCKDB_BUILD_STATIC_EXTENSION

//===--------------------------------------------------------------------===//
// Struct Global Macros
//===--------------------------------------------------------------------===//
#ifdef DUCKDB_BUILD_STATIC_EXTENSION
// No vtable global needed for static builds - DuckDB symbols are resolved directly at link time
#define DUCKDB_EXTENSION_GLOBAL
#define DUCKDB_EXTENSION_API_INIT(input, minimum_api_version)
#else
// This goes in the c/c++ file containing the entrypoint
#define DUCKDB_EXTENSION_GLOBAL duckdb_ext_api_v2 duckdb_ext_api = {0};
// Initializes the C Extension API: First thing to call in the extension entrypoint. Nothing else in the API may be
// called before it succeeds, so a failure returns without touching the error slot: the library has already recorded
// why get_api refused, and reports that.
#define DUCKDB_EXTENSION_API_INIT(input, minimum_api_version)                                                          \
	duckdb_ext_api_v2 *res = (duckdb_ext_api_v2 *)(input)->get_api((input)->extension, minimum_api_version);           \
	if (!res) {                                                                                                        \
		return;                                                                                                        \
	};                                                                                                                 \
	duckdb_ext_api = *res;
#endif // DUCKDB_BUILD_STATIC_EXTENSION

// Place in global scope of any C/C++ file that needs to access the extension API
#define DUCKDB_EXTENSION_EXTERN extern duckdb_ext_api_v2 duckdb_ext_api;

#ifdef _WIN32
#define DUCKDB_CAPI_ENTRY_VISIBILITY __declspec(dllexport)
#else
#define DUCKDB_CAPI_ENTRY_VISIBILITY __attribute__((visibility("default")))
#endif

//===--------------------------------------------------------------------===//
// Entrypoint Macros
//===--------------------------------------------------------------------===//

// Note: the DUCKDB_EXTENSION_ENTRYPOINT macro requires DUCKDB_EXTENSION_NAME to be set.

#ifdef DUCKDB_EXTENSION_NAME

// Main entrypoint: receives the extension being loaded to register functionality through, a context to read and run
// queries through, and the error slot to report failure on. Write the body as
//
//		DUCKDB_EXTENSION_ENTRYPOINT(duckdb_v2_extension_handle extension, duckdb_v2_context_handle context,
//		                            duckdb_v2_error_info_handle *err) {
//			...
//		}
#define DUCKDB_EXTENSION_ENTRYPOINT                                                                                    \
	DUCKDB_EXTENSION_GLOBAL static void DUCKDB_EXTENSION_GLUE(DUCKDB_EXTENSION_NAME, _init_c_api_v2_internal)(         \
	    duckdb_v2_extension_handle extension, duckdb_v2_context_handle context, duckdb_v2_error_info_handle * err);    \
	DUCKDB_EXTENSION_EXTERN_C_GUARD_OPEN DUCKDB_CAPI_ENTRY_VISIBILITY DUCKDB_EXTENSION_API void DUCKDB_EXTENSION_GLUE( \
	    DUCKDB_EXTENSION_NAME, _init_c_api_v2)(struct duckdb_v2_extension_input * input) {                             \
		DUCKDB_EXTENSION_API_INIT(input, DUCKDB_EXTENSION_API_VERSION_STRING);                                         \
		DUCKDB_EXTENSION_GLUE(DUCKDB_EXTENSION_NAME, _init_c_api_v2_internal)                                          \
		(input->extension, input->context, input->err);                                                                \
	}                                                                                                                  \
	DUCKDB_EXTENSION_EXTERN_C_GUARD_CLOSE static void DUCKDB_EXTENSION_GLUE(DUCKDB_EXTENSION_NAME,                     \
	                                                                        _init_c_api_v2_internal)

// Custom entrypoint: identical to the main entrypoint
#define DUCKDB_EXTENSION_ENTRYPOINT_CUSTOM DUCKDB_EXTENSION_ENTRYPOINT
#endif