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

16 lines
454 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");
~DuckdbServer();
};
#endif //__DUCKDB_CONN_H__