Skip to content

Commit

Permalink
Add back duckpgq_init and duckpgq_version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Oct 30, 2024
1 parent 507dc29 commit 6772102
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/duckpgq_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ std::string DuckpgqExtension::Name() { return "duckpgq"; }

} // namespace duckpgq

extern "C" {

DUCKDB_EXTENSION_API void duckpgq_init(DatabaseInstance &db) {
LoadInternal(db);
}

DUCKDB_EXTENSION_API const char *duckpgq_version() {
return DuckDB::LibraryVersion();
}
}

#ifndef DUCKDB_EXTENSION_MAIN
#error DUCKDB_EXTENSION_MAIN not defined
#endif

0 comments on commit 6772102

Please sign in to comment.