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.
18 lines
520 B
18 lines
520 B
#ifndef __DUCKDB_CONN_H__
|
|
#define __DUCKDB_CONN_H__
|
|
#include "DataSource_conn.h"
|
|
|
|
struct DuckdbServer : DataSource {
|
|
explicit DuckdbServer(Context* cxt);
|
|
void connect(Context* cxt);
|
|
void exec(const char* q);
|
|
void* getCol(int col_idx, int type);
|
|
long long getFirstElement();
|
|
void close();
|
|
bool haserror();
|
|
void print_results(const char* sep = " ", const char* end = "\n",
|
|
uint32_t limit = std::numeric_limits<uint32_t>::max()) {}
|
|
|
|
~DuckdbServer();
|
|
};
|
|
#endif //__DUCKDB_CONN_H__
|