55 *hash<auto> where_cond, *hash<auto> search_options) {
61 *
string query =
makeQuery(where_cond, search_options);
64 string uri =
name +
"s";
66 uri += sprintf(
"?%s", query);
68 i =
new ListHashIterator(
rest.
get(uri, NOTHING, \info).body.value);
69 }
catch (hash<ExceptionInfo> ex) {
73 } + info{
"response-code",
"response-body"};
74 throw ex.err, ex.desc, ex_arg;
116 *
string makeQuery(*hash<auto> where_cond, *hash<auto> search_options);
125 string getArgValue(
string key,
auto value);
129 string getOrderBy(softlist<string> coll);
134 bool checkColumnName(
string col);
139 string getColumnNames(*softlist<auto> column_names);
144 string doWhereExpression(hash<auto> where_cond, *hash<auto> search_options);
149 string doWhereExpressionIntern(
string key,
auto value);
Defines the record iterator class for Table-based iterators.
Definition: CdsRestRecordIterator.qc.dox.h:28
*string makeQuery(*hash< auto > where_cond, *hash< auto > search_options)
Returns the filter for a request.
string name
current object name
Definition: CdsRestRecordIterator.qc.dox.h:37
Qore::ListHashIterator i
record iterator
Definition: CdsRestRecordIterator.qc.dox.h:43
string getOrClause(list< auto > arglist)
Returns "or" clauses.
auto memberGate(string key)
Returns the value of the given field in the current row, if the iterator is valid.
hash< auto > getValue()
Returns a single record if the iterator is valid.
CdsRestClient::CdsRestClient rest
The REST client object for API calls.
Definition: CdsRestRecordIterator.qc.dox.h:34
bool next()
Increments the row pointer when retrieving rows from a select statement; returns True if there is a r...
bool valid()
Returns True if the iterator is valid.
hash< CdsRestRecordInfo > record_info
Record info for the entity.
Definition: CdsRestRecordIterator.qc.dox.h:40
constructor(CdsRestClient::CdsRestClient rest, string name, hash< CdsRestRecordInfo > record_info, *hash< auto > where_cond, *hash< auto > search_options)
creates the iterator
Definition: CdsRestRecordIterator.qc.dox.h:54
*hash< string, DataProvider::AbstractDataField > getRecordType()
Returns the record description, if available.
*string get(string path, *hash< auto > headers, *reference< hash< auto > > info)
Qore CdsRestDataProvider module definition.
Definition: CdsEntityDataProvider.qc.dox.h:26