mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Now QueryBuilder, QueryResult and TableBuilder are inherited from Reference.
This commit is contained in:
parent
158a68e028
commit
dd653ae60a
@ -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();
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -9,6 +9,8 @@ class User;
|
||||
|
||||
class UserModel : public Object {
|
||||
public:
|
||||
//Ref<User> get_user(const int id);
|
||||
|
||||
static UserModel *get_singleton();
|
||||
|
||||
UserModel();
|
||||
|
Loading…
Reference in New Issue
Block a user