From 95357d83819e3d177f8f331efc0fd9bd7ec401cf Mon Sep 17 00:00:00 2001 From: Alexander Droste Date: Tue, 29 Jul 2025 11:07:04 +0100 Subject: [PATCH] fix: global symbol visibility Signed-off-by: Alexander Droste --- src/vortex_extension.cpp | 14 ++++++++++++-- vortex | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/vortex_extension.cpp b/src/vortex_extension.cpp index 19edace..4feccf1 100644 --- a/src/vortex_extension.cpp +++ b/src/vortex_extension.cpp @@ -5,8 +5,18 @@ using namespace duckdb; +extern "C" { +DUCKDB_EXTENSION_API void vortex_init(duckdb::DatabaseInstance &db) { + vortex_init_rust(reinterpret_cast(&db)); +} + +DUCKDB_EXTENSION_API const char *vortex_version() { + return duckdb::DuckDB::LibraryVersion(); +} +} + static void LoadInternal(DatabaseInstance &db_instance) { - vortex_init(reinterpret_cast(&db_instance)); + vortex_init_rust(reinterpret_cast(&db_instance)); } /// Called when the extension is loaded by DuckDB. @@ -32,7 +42,7 @@ std::string VortexExtension::Name() { //! Returns the version of the Vortex extension. std::string VortexExtension::Version() const { - return "0.41.2"; + return vortex_extension_version_rust(); } #ifndef DUCKDB_EXTENSION_MAIN diff --git a/vortex b/vortex index c6783bb..348079f 160000 --- a/vortex +++ b/vortex @@ -1 +1 @@ -Subproject commit c6783bb136454ac51c5f14512191ea4660b22d84 +Subproject commit 348079fc39b220f6e29c584ce28c09028cedc136