-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove most C++ from pgduckdb.cpp
#498
base: main
Are you sure you want to change the base?
Conversation
// pgduckdb_background_worker.cpp | ||
void DuckdbInitBackgroundWorker(); | ||
|
||
namespace pgduckdb { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this starts containing namespace
sections than the header should probably be renamed into a hpp
file.
static void | ||
DuckdbInitGUC(void) { | ||
void | ||
DuckdbInitGUC() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related thought: I've been thinking we should probably move this GUC stuff to its own guc.cpp
file.
void DuckdbInitGUC(); | ||
|
||
// pgduckdb_hooks.cpp | ||
void DuckdbInitHooks(); | ||
|
||
// pgduckdb_node.cpp | ||
void DuckdbInitNode(); | ||
|
||
// pgduckdb_background_worker.cpp | ||
void DuckdbInitBackgroundWorker(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why move these functions to this header instead of leaving them defined where they were?
pgduckdb.h
filespgduckdb.cpp
(last remaining istype_traits
for the GUC helpers)