Skip to content

Better docs for examples/hello-ext #181

@theelderbeever

Description

@theelderbeever

I am trying to create an extension in Rust but I am not sure how to get started with the example mentioned above. How do you build it or load it into duckdb at runtime?

I got the example to build with cargo build --example hello-ext --features="vtab bundled,vtab-loadable" but how do I load it? I found ~/.duckdb/extensions/<version>/libhello_ext.duckdb_extension but I receive the following...

D INSTALL '/Users/taylorbeever/.duckdb/extensions/v0.8.1/osx_arm64/libhello_ext.duckdb_extension';
D LOAD libhello_ext;
Error: IO Error: Extension "/Users/taylorbeever/.duckdb/extensions/v0.8.1/osx_arm64/libhello_ext.duckdb_extension" could not be loaded: dlopen(/Users/taylorbeever/.duckdb/extensions/v0.8.1/osx_arm64/libhello_ext.duckdb_extension, 0x0006): tried: '/Users/taylorbeever/.duckdb/extensions/v0.8.1/osx_arm64/libhello_ext.duckdb_extension' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/taylorbeever/.duckdb/extensions/v0.8.1/osx_arm64/libhello_ext.duckdb_extension' (no such file), '/Users/taylorbeever/.duckdb/extensions/v0.8.1/osx_arm64/libhello_ext.duckdb_extension' (not a mach-o file)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions