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.
16 lines
464 B
16 lines
464 B
2 years ago
|
#ifndef __DUCKDB_CONN_H__
|
||
|
#define __DUCKDB_CONN_H__
|
||
|
#include "DataSource_conn.h"
|
||
|
|
||
|
struct DuckdbServer : DataSource {
|
||
|
explicit DuckdbServer(Context* cxt = nullptr);
|
||
|
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");
|
||
|
~DuckdbServer();
|
||
|
};
|
||
|
#endif //__DUCKDB_CONN_H__
|