File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
using namespace duckdb ;
7
7
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
+
8
18
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));
10
20
}
11
21
12
22
// / Called when the extension is loaded by DuckDB.
@@ -32,7 +42,7 @@ std::string VortexExtension::Name() {
32
42
33
43
// ! Returns the version of the Vortex extension.
34
44
std::string VortexExtension::Version () const {
35
- return " 0.41.2 " ;
45
+ return vortex_extension_version_rust () ;
36
46
}
37
47
38
48
#ifndef DUCKDB_EXTENSION_MAIN
You can’t perform that action at this time.
0 commit comments