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/duckdb_conn.h

19 lines
588 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);
2 years ago
void* getCol(int col_idx, int type) override;
void getDSTable(const char* name, void* tbl) override;
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__