Skip to main content

DUCKDB_API_VERSION_1_5_6

Constant DUCKDB_API_VERSION_1_5_6 

Source
pub const DUCKDB_API_VERSION_1_5_6: &str = "v1.5.6";
Expand description

The C extension API version to stamp an extension that uses the duckdb-1-5 features with: --abi-type C_STRUCT --duckdb-version v1.5.6.

DuckDB v1.5.6 declared every slot of duckdb_ext_api_v1 stable for an extension targeting C API v1.5.6, and v2.0.0 still declares v1.5.6 as its V1 C API version, only appending to that layout. So a binary stamped with this version is refused by DuckDB v1.2.0 – v1.5.5 (whose C API is DUCKDB_API_VERSION) and loads into v1.5.6 and v2.0.0.

It replaces C_STRUCT_UNSTABLE for that purpose: DuckDB 2.0 loads a C_STRUCT_UNSTABLE binary only through the C API v2 entry point (<name>_init_c_api_v2), which quack-rs does not generate.