#ifndef __MONETDB_CONN_H__ #define __MONETDB_CONN_H__ #include "DataSource_conn.h" struct MonetdbServer : DataSource { explicit MonetdbServer(Context* cxt); void connect(Context* cxt) override; void exec(const char* q) override; void *getCol(int col_idx, int) override; long long getFirstElement(); void close() override; bool haserror() override; static bool havehge(); void print_results(const char* sep = " ", const char* end = "\n"); friend void print_monetdb_results(void* _srv, const char* sep, const char* end, int limit); ~MonetdbServer() override; }; struct monetdbe_table_data{ const char* table_name; const char* create_table_sql; void* cols; }; extern "C" size_t monetdbe_get_size(void* dbhdl, const char *table_name); extern "C" void* monetdbe_get_col(void* dbhdl, const char *table_name, uint32_t col_id); #endif