mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Added 4 new helper methods to QueryBuilder.
This commit is contained in:
parent
4393c60e5f
commit
6f7b413e08
@ -102,6 +102,13 @@ QueryBuilder *QueryBuilder::val(const bool param) {
|
||||
return this;
|
||||
}
|
||||
|
||||
QueryBuilder *QueryBuilder::valf(const float param) {
|
||||
return this;
|
||||
}
|
||||
QueryBuilder *QueryBuilder::vald(const double param) {
|
||||
return this;
|
||||
}
|
||||
|
||||
QueryBuilder *QueryBuilder::like(const String &str) {
|
||||
return nlike(escape(str));
|
||||
}
|
||||
@ -124,6 +131,12 @@ QueryBuilder *QueryBuilder::setp(const String &col, const int param) {
|
||||
QueryBuilder *QueryBuilder::setp(const String &col, const bool param) {
|
||||
return this;
|
||||
}
|
||||
QueryBuilder *QueryBuilder::setpf(const String &col, const float param) {
|
||||
return this;
|
||||
}
|
||||
QueryBuilder *QueryBuilder::setpd(const String &col, const double param) {
|
||||
return this;
|
||||
}
|
||||
|
||||
QueryBuilder *QueryBuilder::wp(const String &col, const String ¶m) {
|
||||
return nwp(col, escape(param));
|
||||
|
@ -46,6 +46,8 @@ public:
|
||||
virtual QueryBuilder *val(const char *param);
|
||||
virtual QueryBuilder *val(const int param);
|
||||
virtual QueryBuilder *val(const bool param);
|
||||
virtual QueryBuilder *valf(const float param);
|
||||
virtual QueryBuilder *vald(const double param);
|
||||
|
||||
virtual QueryBuilder *like(const String &str);
|
||||
|
||||
@ -56,6 +58,8 @@ public:
|
||||
virtual QueryBuilder *setp(const String &col, const char *param);
|
||||
virtual QueryBuilder *setp(const String &col, const int param);
|
||||
virtual QueryBuilder *setp(const String &col, const bool param);
|
||||
virtual QueryBuilder *setpf(const String &col, const float param);
|
||||
virtual QueryBuilder *setpd(const String &col, const double param);
|
||||
|
||||
virtual QueryBuilder *wp(const String &col, const String ¶m);
|
||||
virtual QueryBuilder *wp(const String &col, const char *param);
|
||||
|
Loading…
Reference in New Issue
Block a user