diff --git a/src/lib.rs b/src/lib.rs index 49762fe..e32698f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -85,9 +85,11 @@ impl VTab for HelloVTab { } } +const EXTENSION_NAME: &str = env!("CARGO_PKG_NAME"); + #[duckdb_entrypoint_c_api(ext_name = "rusty_quack", min_duckdb_version = "v0.0.1")] pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box> { - con.register_table_function::("rusty_quack") + con.register_table_function::(EXTENSION_NAME) .expect("Failed to register hello table function"); Ok(()) }