Skip to content

Commit 95357d8

Browse files
committed
fix: global symbol visibility
Signed-off-by: Alexander Droste <[email protected]>
1 parent f0a3b61 commit 95357d8

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/vortex_extension.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,18 @@
55

66
using namespace duckdb;
77

8+
extern "C" {
9+
DUCKDB_EXTENSION_API void vortex_init(duckdb::DatabaseInstance &db) {
10+
vortex_init_rust(reinterpret_cast<duckdb_database>(&db));
11+
}
12+
13+
DUCKDB_EXTENSION_API const char *vortex_version() {
14+
return duckdb::DuckDB::LibraryVersion();
15+
}
16+
}
17+
818
static void LoadInternal(DatabaseInstance &db_instance) {
9-
vortex_init(reinterpret_cast<duckdb_database>(&db_instance));
19+
vortex_init_rust(reinterpret_cast<duckdb_database>(&db_instance));
1020
}
1121

1222
/// Called when the extension is loaded by DuckDB.
@@ -32,7 +42,7 @@ std::string VortexExtension::Name() {
3242

3343
//! Returns the version of the Vortex extension.
3444
std::string VortexExtension::Version() const {
35-
return "0.41.2";
45+
return vortex_extension_version_rust();
3646
}
3747

3848
#ifndef DUCKDB_EXTENSION_MAIN

vortex

0 commit comments

Comments
 (0)