cwida / duckdb-pgq

DuckDB is an in-process SQL OLAP Database Management System
http://www.duckdb.org
MIT License
38 stars 1 forks source link

Change SQL/PGQ properties in client data to extension client data #39

Closed Dtenwolde closed 1 year ago

Dtenwolde commented 1 year ago
unordered_map<string, shared_ptr<ClientContextState>> registered_state; 
//! ClientContextState is virtual base class for ClientContext-local (or Query-Local, using QueryEnd callback) state
//! e.g. caches that need to live as long as a ClientContext or Query.
class ClientContextState {
public:
    virtual ~ClientContextState() {};
    virtual void QueryEnd() = 0;
};

subclassen en onder een alias opslaan in context:

context->registered_state.push_back("sqlpgq", pgq_state) |
Dtenwolde commented 1 year ago

Closed as of #40