Skip to content

Commit

Permalink
Merge pull request #1 from carlopi/main
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
samansmink authored Nov 13, 2024
2 parents 1138856 + 90c91f8 commit 5bc26eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "rusty-quack"
name = "rusty_quack"
version = "0.1.0"
edition = "2021"

Expand Down
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ExtensionEntrypoint(con: Connection) -> Result<(), Box<dyn Error>> {
con.register_table_function::<HelloVTab>("rusty_quack")
pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box<dyn Error>> {
con.register_table_function::<HelloVTab>(EXTENSION_NAME)
.expect("Failed to register hello table function");
Ok(())
}

0 comments on commit 5bc26eb

Please sign in to comment.