Now QueryBuilder, QueryResult and TableBuilder are inherited from Reference.

This commit is contained in:
Relintai 2021-08-22 20:41:59 +02:00
parent 158a68e028
commit dd653ae60a
4 changed files with 11 additions and 3 deletions

View File

@ -3,11 +3,13 @@
#include <string>
#include "core/reference.h"
class QueryResult;
//methods that start with an e escape their params.
class QueryBuilder {
class QueryBuilder : public Reference {
public:
virtual QueryBuilder *select();
virtual QueryBuilder *udpate();

View File

@ -3,7 +3,9 @@
#include <string>
class QueryResult {
#include "core/reference.h"
class QueryResult : public Reference {
public:
virtual bool next_row();
virtual const char *get_cell(const int index);

View File

@ -3,9 +3,11 @@
#include <string>
#include "core/reference.h"
class QueryResult;
class TableBuilder {
class TableBuilder : public Reference {
public:
virtual TableBuilder *create_table(const std::string &name);
virtual TableBuilder *integer(const std::string &name);

View File

@ -9,6 +9,8 @@ class User;
class UserModel : public Object {
public:
//Ref<User> get_user(const int id);
static UserModel *get_singleton();
UserModel();