diff --git a/Makefile b/Makefile index 5980fa8..e8fa908 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ PROJ_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) +# TODO: these values are currently duplicated in lib.rs. There's a PR open in duckdb-rs that fixes this EXTENSION_NAME=rusty_quack MINIMUM_DUCKDB_VERSION=v0.0.1 diff --git a/src/lib.rs b/src/lib.rs index 163b3f7..8cfef70 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -85,8 +85,8 @@ impl VTab for HelloVTab { } } -#[duckdb_entrypoint_c_api()] -pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { +#[duckdb_entrypoint_c_api(ext_name = "rusty_quack", min_duckdb_version = "v0.0.1")] +pub unsafe fn ExtensionEntrypoint(con: Connection) -> Result<(), Box> { con.register_table_function::("rusty_quack") .expect("Failed to register hello table function"); Ok(())