You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AQuery/server/monetdb_conn.h

37 lines
1.1 KiB

2 years ago
#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;
2 years ago
void getDSTable(const char* name, void* tbl) override;
2 years ago
long long getFirstElement();
void close() override;
bool haserror() override;
2 years ago
static bool havehge();
void print_results(const char* sep = " ", const char* end = "\n",
uint32_t limit = std::numeric_limits<uint32_t>::max()) override;
friend void print_monetdb_results(void* _srv, const char* sep, const char* end, int limit);
~MonetdbServer() override;
};
2 years ago
struct monetdbe_table_data{
const char* table_name;
const char* create_table_sql;
void* cols;
};
2 years ago
extern "C" size_t
2 years ago
monetdbe_get_size(void* dbhdl, const char *table_name, void*);
2 years ago
2 years ago
extern "C" void*
2 years ago
monetdbe_get_col(void* dbhdl, const char *table_name, uint32_t col_id);
2 years ago
extern "C" void
monetdbe_get_cols(void* dbhdl, const char* table_name, void*** cols, int i);
2 years ago
#endif