234 hash<string, hash<QueryOperatorInfo>>
query_wop_or(hash<auto> h1, hash<auto> h2);
241 "code":
string sub (
object i,
string cn,
auto arg) {
242 return sprintf(
"contains(%s, %s)", cn, arg);
246 "code":
string sub (
object i,
string cn,
auto arg) {
247 return sprintf(
"endswith(%s, %s)", cn, arg);
251 "code":
string sub (
object i,
string cn,
auto arg) {
252 return sprintf(
"startswith(%s, %s)", cn, arg);
256 "code":
string sub (
object i,
string cn,
auto arg) {
257 return sprintf(
"%s lt %s", cn, arg);
261 "code":
string sub (
object i,
string cn,
auto arg) {
262 return sprintf(
"%s le %s", cn, arg);
266 "code":
string sub (
object i,
string cn,
auto arg) {
267 return sprintf(
"%s gt %s", cn, arg);
271 "code":
string sub (
object i,
string cn,
auto arg) {
272 return sprintf(
"%s ge %s", cn, arg);
276 "code":
string sub (
object i,
string cn,
auto arg) {
277 return sprintf(
"%s ne %s", cn, arg);
281 "code":
string sub (
object i,
string cn,
auto arg) {
282 return sprintf(
"%s eq %s", cn, arg);
287 "code":
string sub (
object i,
string cn,
auto arg) {
288 return sprintf(
"not (%s)", cn);
292 "code":
string sub (
object i,
string cn, list<auto> arg) {
293 return i.getOrClause(arg);
hash< QueryOperatorInfo > query_op_not(hash arg)
returns an QueryOperatorInfo hash for the "not" operator; for use in cds queries
hash< QueryOperatorInfo > query_op_like(string str)
returns an QueryOperatorInfo hash for the "contains" operator with the given argument for use in cds ...
hash< QueryOperatorInfo > query_op_ne(auto arg)
returns an QueryOperatorInfo hash for the "!=" or "<>" operator with the given argument for use in cd...
hash< QueryOperatorInfo > query_op_gt(auto arg)
returns an QueryOperatorInfo hash for the ">" operator with the given argument for use in cds queries...
hash< QueryOperatorInfo > query_op_le(auto arg)
returns an QueryOperatorInfo hash for the "<=" operator with the given argument for use in cds querie...
hash< QueryOperatorInfo > query_op_lt(auto arg)
returns an QueryOperatorInfo hash for the "<" operator with the given argument for use in cds queries...
hash< QueryOperatorInfo > query_op_contains(string str)
returns an QueryOperatorInfo hash for the "contains" operator with the given argument for use in cds ...
hash< QueryOperatorInfo > query_op_eq(auto arg)
returns an QueryOperatorInfo hash for the "=" operator with the given argument for use in cds queries...
hash< QueryOperatorInfo > query_make_op(string op, auto arg)
hash< string, hash< QueryOperatorInfo > > query_wop_or(hash< auto > h1, hash< auto > h2)
returns an QueryOperatorInfo hash with a fake "_OR_" column name; the list of arguments to the functi...
hash< QueryOperatorInfo > query_op_ge(auto arg)
returns an QueryOperatorInfo hash for the ">=" operator with the given argument for use in cds querie...
const QUERY_OP_ENDSWITH
like/contains operator
Definition: CdsRestDataProviderDefs.qc.dox.h:42
const QUERY_OP_EQ
the Query equals operator (=) for use in queries
Definition: CdsRestDataProviderDefs.qc.dox.h:75
const QUERY_OP_OR
to combine Query expressions with "or" for use in queries
Definition: CdsRestDataProviderDefs.qc.dox.h:85
const QUERY_OP_LE
the Query less than or equals (<=) operator for use in queries
Definition: CdsRestDataProviderDefs.qc.dox.h:55
const QUERY_OP_GE
the Query greater than or equals operator (>=) for use in queries
Definition: CdsRestDataProviderDefs.qc.dox.h:65
const QUERY_OP_STARTSWITH
like/contains operator
Definition: CdsRestDataProviderDefs.qc.dox.h:45
const QUERY_OP_NE
the Query not equals operator (!= or <>) for use in queries
Definition: CdsRestDataProviderDefs.qc.dox.h:70
const QUERY_OP_NOT
the Query "not" operator for use in queries
Definition: CdsRestDataProviderDefs.qc.dox.h:80
const QUERY_OP_GT
the Query greater than operator (>) for use in queries
Definition: CdsRestDataProviderDefs.qc.dox.h:60
const QUERY_OP_LT
the Query less than (<) operator for use in queries
Definition: CdsRestDataProviderDefs.qc.dox.h:50
const QUERY_OP_CONTAINS
Definition: CdsRestDataProviderDefs.qc.dox.h:39
string sprintf(string fmt,...)
hash< auto > hash(object obj)
Qore CDSRestDataProviderDefs definitions.
Definition: CdsRestDataProviderDefs.qc.dox.h:26
const DefaultQueryOpMap
a hash of valid operators for use in queries
Definition: CdsRestDataProviderDefs.qc.dox.h:239
Query operator info hash as returned by all operator functions.
Definition: CdsRestDataProviderDefs.qc.dox.h:28
string op
the operator string code
Definition: CdsRestDataProviderDefs.qc.dox.h:29
auto arg
optional argument
Definition: CdsRestDataProviderDefs.qc.dox.h:30