minor
This commit is contained in:
parent
87b46a808a
commit
988ea3688b
|
|
@ -86,6 +86,7 @@ public slots:
|
||||||
void setDriver(QString driver);
|
void setDriver(QString driver);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
//TODO: move me to database_p.h
|
||||||
QSet<TableSetBase *> tableSets;
|
QSet<TableSetBase *> tableSets;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,11 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef NUT_NAMESPACE
|
#ifdef NUT_NAMESPACE
|
||||||
|
//TODO: remove unused macro
|
||||||
# define __NUT_NAMESPACE_PERFIX NUT_NAMESPACE::
|
# define __NUT_NAMESPACE_PERFIX NUT_NAMESPACE::
|
||||||
# define NUT_WRAP_NAMESPACE(x) NUT_NAMESPACE::x
|
# define NUT_WRAP_NAMESPACE(x) NUT_NAMESPACE::x
|
||||||
#else
|
#else
|
||||||
|
//TODO: remove unused macro
|
||||||
# define __NUT_NAMESPACE_PERFIX
|
# define __NUT_NAMESPACE_PERFIX
|
||||||
# define NUT_WRAP_NAMESPACE(x) x
|
# define NUT_WRAP_NAMESPACE(x) x
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -113,8 +115,8 @@ public: \
|
||||||
# define FROM(x) (x->query())
|
# define FROM(x) (x->query())
|
||||||
# define WHERE(x) ->setWhere(x)
|
# define WHERE(x) ->setWhere(x)
|
||||||
# define JOIN(x) ->join(#x)
|
# define JOIN(x) ->join(#x)
|
||||||
# define ORDERBY(x) ->orderBy(#x, "ASC");
|
# define ORDERBY(x) ->orderBy(#x);
|
||||||
# define ORDERBY_DESC(x) ->orderBy(#x, "DESC");
|
# define ORDERBY_DESC(x) ->orderBy(!#x);
|
||||||
|
|
||||||
# define SELECT() ->toList()
|
# define SELECT() ->toList()
|
||||||
# define COUNT() ->count()
|
# define COUNT() ->count()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue