2020-12-02 00:43:46 +01:00
|
|
|
#ifndef QUERY_RESULT_H
|
|
|
|
#define QUERY_RESULT_H
|
|
|
|
|
2021-11-01 17:49:10 +01:00
|
|
|
#include "core/string.h"
|
2021-08-20 12:58:37 +02:00
|
|
|
|
2021-08-22 20:41:59 +02:00
|
|
|
#include "core/reference.h"
|
|
|
|
|
|
|
|
class QueryResult : public Reference {
|
2022-01-08 10:04:12 +01:00
|
|
|
RCPP_OBJECT(QueryResult, Reference);
|
|
|
|
|
2020-12-02 00:43:46 +01:00
|
|
|
public:
|
2021-08-20 12:58:37 +02:00
|
|
|
virtual bool next_row();
|
|
|
|
virtual const char *get_cell(const int index);
|
2021-11-01 17:49:10 +01:00
|
|
|
virtual const String get_cell_str(const int index);
|
2021-08-20 12:58:37 +02:00
|
|
|
virtual const bool get_cell_bool(const int index);
|
|
|
|
virtual const int get_cell_int(const int index);
|
2021-11-14 21:04:48 +01:00
|
|
|
virtual const float get_cell_float(const int index);
|
|
|
|
virtual const double get_cell_double(const int index);
|
2021-08-20 12:58:37 +02:00
|
|
|
|
|
|
|
virtual bool is_cell_null(const int index);
|
|
|
|
|
|
|
|
virtual int get_last_insert_rowid();
|
2020-12-02 00:43:46 +01:00
|
|
|
|
|
|
|
QueryResult();
|
|
|
|
virtual ~QueryResult();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|