60 softlist<AbstractDataProviderType>
type;
410 softlist<hash<DataProviderSignatureTypeInfo>>
args;
699 *hash<string, hash<DataProviderMessageInfo>>
events;
706 *hash<string, hash<DataProviderMessageInfo>>
messages;
742 "desc":
"logical AND operation supporting logic short-circuiting",
748 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
749 foreach auto arg in (exp.args) {
762 "desc":
"logical OR operation supporting logic short-circuiting",
768 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
769 foreach auto arg in (exp.args) {
781 "name":
"equals (=)",
782 "desc":
"a value for equality comparisons; the type of the value should correspond to the field "
788 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
801 "name":
"not equals (!=)",
802 "desc":
"a value for not-equals comparisons; the type of the value should correspond to the "
808 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
817 "name":
"less than (<)",
818 "desc":
"a value for less than comparisons; if the field value is less than the argument, then "
819 "the operation returns true; the type of the value should correspond to the field type",
824 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
833 "name":
"less than or equals (<=)",
834 "desc":
"a value for less than or equals comparisons; if the field value is less than or equal "
835 "to the argument, then the operation returns true; the type of the value should correspond "
841 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
850 "name":
"greater than (>)",
851 "desc":
"a value for less than comparisons; if the field value is less than the argument, then "
852 "the operation returns true; the type of the value should correspond to the field type",
857 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
866 "name":
"greater than or equals (>=)",
867 "desc":
"a value for greater than or equals comparisons; if the field value is greater than or "
868 "equal to the argument, then the operation returns true; the type of the value should "
869 "correspond to the field type",
874 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
884 "desc":
"A list with two elements giving the lower and upper bounds of the field value; the list "
885 "element value types must be equal to the field's type",
894 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
905 "desc":
"A list giving possible values of the field; if the field's value matches any of the "
906 "values in the list, then the operation returns true; element value types must be equal to "
913 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
922 "name":
"logical not (!)",
923 "desc":
"This operator reverses the logcal value of the operator expression given as an argument",
928 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
936 "name":
"regular expression match",
937 "desc":
"regular expression operator; the first argument will be processed with the second as a "
938 "regular expression pattern",
952 "impl":
auto sub (hash<auto> rec, hash<DataProviderExpression> exp) {
955 arg1.pattern, arg1.options);
970 TypedHash::forName(
"DataProviderSummaryInfo").getMembers();
994 "desc":
"allows a subset of fields to be output in searches",
998 "desc":
"the maximum number of records to return",
1002 "desc":
"the offset number in records to return",
1125 *hash<auto> search_options) {
1127 return searchRecordsBulk(block_size, NOTHING, validateSearchOptions(search_options));
1143 *hash<DataProviderExpression> where_cond, *hash<auto> search_options) {
1145 if (block_size <= 0);
1147 search_options = validateSearchOptions(search_options);
1148 return searchRecordsBulkImpl(block_size, processSearchParameters(where_cond, search_options),
1163 *hash<auto> search_options) {
1165 if (block_size <= 0);
1167 search_options = validateSearchOptions(search_options);
1168 return searchRecordsBulkImpl(block_size,
getSearchExpression(where_cond, search_options), search_options);
1180 *hash<auto> search_options) {
1182 search_options = validateSearchOptions(search_options);
1183 return searchRecordsImpl(processSearchParameters(where_cond, search_options), search_options);
1207 *hash<auto> search_options) {
1210 return requestSearchRecordsImpl(req, processSearchParameters(where_cond, search_options), search_options);
1223 *hash<auto> search_options) {
1226 return requestSearchRecordsImpl(req,
getSearchExpression(where_cond, search_options), search_options);
1241 bool updateSingleRecord(hash<auto> set, hash<DataProviderExpression> where_cond, *hash<auto> search_options);
1270 int updateRecords(hash<auto> set, *hash<DataProviderExpression> where_cond, *hash<auto> search_options);
1284 int updateRecords(hash<auto> set, *hash<auto> where_cond, *hash<auto> search_options);
1300 int deleteRecords(*hash<DataProviderExpression> where_cond, *hash<auto> search_options);
1342 *hash<auto> child_create_options) {
1344 child_create_options = validateChildCreateOptions(child_create_options);
1347 on_error
if (1.err !=
'CREATE-CHILD-PROVIDER-ERROR');
1349 return createChildProviderImpl(name, fields, child_create_options);
1414 sendMessage(
string message_id,
auto msg, *hash<auto> send_message_options);
1756 hash<DataProviderExpressionInfo> expinfo,
string key,
auto value) {
1759 hash<DataProviderExpression> rv;
1760 if (value.typeCode() == NT_HASH && value.op && value.hasKey(
'arg'));
1764 int caps = role ==
ER_Search ? info.search_logic_capabilities : 0;
1776 string key,
auto value) {
1777 if (!info.expressions.
'=');
1779 return <DataProviderExpression>{
1789 static private hash<DataProviderExpressionInfo>
getExpression(
int role,
string exp,
1790 *hash<
string, hash<DataProviderExpressionInfo>> expmap) {
1791 *hash<DataProviderExpressionInfo> expinfo = expmap{exp};
1794 if (!(expinfo.role & role));
1813 if (val instanceof hash<DataProviderExpression>);
1822 static auto evalGenericExpression(hash<auto> rec, hash<DataProviderExpression> exp);
1835 static bool setDynamicValueCallbacks(code value_needs_resolution, code resolve_value);
1846 static verifyExpression(
int role, *hash<
string, hash<DataProviderExpressionInfo>> expmap,
int caps,
1847 AbstractDataProviderType expected_type, hash<DataProviderExpression> exp) {
1848 hash<DataProviderExpressionInfo> expinfo = AbstractDataProvider::getExpression(role, exp.exp, expmap);
1849 return AbstractDataProvider::verifyExpression(role, expinfo, caps, expected_type, exp);
1861 static verifyExpression(
int role, hash<DataProviderExpressionInfo> expinfo,
int caps,
1862 AbstractDataProviderType expected_type, hash<DataProviderExpression> exp) {
1864 if (
exp.args.lsize() > expinfo.args.size() && !expinfo.varargs);
1866 map AbstractDataProvider::verifyExpressionArgValue(role, caps, expinfo,
exp.args,
1867 if (
exp.args.lsize() > expinfo.args.size());
1869 if (!expected_type.isAssignableFrom(expinfo.return_type));
1880 static verifyExpressionArgValue(
int role,
int caps, hash<DataProviderExpressionInfo> expinfo,
1881 softlist<auto> values,
int pos) {
1882 hash<DataProviderSignatureTypeInfo> arginfo = expinfo.args[pos] ?? expinfo.args.last();
1883 if (arginfo.type_code == ST_Any);
1885 auto val = values[pos];
1886 bool is_exp = val instanceof hash<DataProviderExpression>;
1887 bool is_ref = is_exp ?
False : val instanceof hash<DataProviderFieldReference>;
1889 switch (arginfo.type_code);
1895 static bool checkCallbacks();
1903 *hash<auto> validateCreateOptions(*hash<auto> create_options);
1911 *hash<auto> validateUpsertOptions(*hash<auto> upsert_options);
1919 *hash<auto> validateSearchOptions(*hash<auto> search_options);
1927 *hash<auto> validateRequestOptions(*hash<auto> request_options);
1937 *hash<auto> validateChildCreateOptions(*hash<auto> child_create_options);
1947 *hash<auto> validateChildDeleteOptions(*hash<auto> child_delete_options);
1957 *hash<auto> validateFieldAddOptions(*hash<auto> field_add_options);
1967 *hash<auto> validateFieldUpdateOptions(*hash<auto> field_update_options);
1977 *hash<auto> validateFieldDeleteOptions(*hash<auto> field_delete_options);
1987 *hash<auto> validateSendMessageOptions(*hash<auto> send_message_options);
1993 processConstructorOptions(*hash<
string, hash<DataProviderOptionInfo>> option_desc, *hash<auto> options);
1998 private *hash<auto> checkOptions(
string err, *hash<
string, hash<DataProviderOptionInfo>> option_desc,
1999 *hash<auto> options) {
2000 if (!option_desc && options);
2002 if (*list<string> invalid_keys = keys (options - (keys option_desc)));
2006 foreach hash<auto> i in (option_desc.pairIterator());
2017 private *hash<DataProviderExpression> processSearchParameters(*hash<DataProviderExpression> exp,
2018 *hash<auto> search_options) {
2021 checkSearchExpressions();
2022 hash<DataProviderInfo> info = getInfo();
2023 verifyExpression(ER_Search, info.expressions, info.search_logic_capabilities,
2037 *hash<auto> processFieldValues(*hash<auto> h, *hash<auto> search_options);
2043 error(
string err,
string fmt);
2053 private *hash<auto> searchFirstRecordImpl(hash<auto> where_cond,
2054 *hash<auto> search_options) {
2056 AbstractDataProviderRecordIterator i = searchRecordsImpl(where_cond, search_options);
2069 private *hash<auto> searchSingleRecordImpl(hash<auto> where_cond,
2070 *hash<auto> search_options) {
2072 *list<*hash<auto>> records = map $1, searchRecordsImpl(where_cond, search_options);
2073 if (records.lsize() > 1);
2084 *list<string> getChildProviderNamesImpl();
2092 *AbstractDataProvider getChildProviderImpl(
string name);
2103 *hash<string, AbstractDataField> getRecordType(*hash<auto> search_options);
2107 *hash<string, AbstractDataField> getSoftRecordType(*hash<auto> search_options);
2111 *hash<string, AbstractDataField> getOrNothingRecordType(*hash<auto> search_options);
2118 *hash<string, hash<DataProviderOptionInfo>> getSearchOptions();
2125 *hash<string, hash<DataProviderOptionInfo>> getCreateOptions();
2132 *hash<string, hash<DataProviderOptionInfo>> getUpsertOptions();
2139 *hash<string, hash<DataProviderOptionInfo>> getRequestOptions();
2149 *hash<string, hash<DataProviderOptionInfo>> getChildCreateOptions();
2159 *hash<string, hash<DataProviderOptionInfo>> getChildDeleteOptions();
2169 *hash<string, hash<DataProviderOptionInfo>> getFieldAddOptions();
2179 *hash<string, hash<DataProviderOptionInfo>> getFieldUpdateOptions();
2189 *hash<string, hash<DataProviderOptionInfo>> getFieldDeleteOptions();
2199 *hash<string, hash<DataProviderOptionInfo>> getSendMessageOptions();
2205 string getMessageSupport();
2211 bool supportsRead();
2217 bool supportsBulkRead();
2223 bool supportsCreate();
2229 bool supportsUpdate();
2235 bool supportsUpsert();
2241 bool supportsDelete();
2247 bool supportsNativeSearch();
2253 bool supportsBulkCreate();
2259 bool supportsBulkUpsert();
2265 bool supportsRequest();
2271 bool recordRequiresSearchOptions();
2283 bool supportsCreateChild();
2289 bool supportsDeleteChild();
2295 bool supportsAddField();
2301 bool supportsUpdateField();
2307 bool supportsDeleteField();
2313 bool supportsSchema();
2319 bool supportsSearchExpressions();
2325 bool supportsObservable();
2331 bool supportsMessages();
2337 *
object getSchemaType();
2346 *hash<string, AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
2358 private AbstractDataProviderBulkRecordInterface searchRecordsBulkImpl(
int block_size = 1000,
2359 *hash<auto> where_cond, *hash<auto> search_options) {
2360 return new DefaultBulkRecordIterface(block_size, searchRecordsImpl(where_cond, search_options));
2369 private AbstractDataProviderRecordIterator searchRecordsImpl(hash<auto> where_cond,
2370 *hash<auto> search_options) {
2371 throwUnimplementedException();
2383 private AbstractDataProviderRecordIterator requestSearchRecordsImpl(
auto req,
2384 *hash<auto> where_cond, *hash<auto> search_options) {
2385 throwUnimplementedException();
2398 *hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
2409 string upsertRecordImpl(hash<auto> rec, *hash<auto> upsert_options);
2418 private bool updateSingleRecordImpl(hash<auto> set, hash<auto> where_cond,
2419 *hash<auto> search_options) {
2420 throwUnimplementedException();
2430 private int updateRecordsImpl(hash<auto> set, *hash<auto> where_cond,
2431 *hash<auto> search_options) {
2432 throwUnimplementedException();
2443 int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
2454 auto doRequestImpl(
auto req, *hash<auto> request_options);
2467 private AbstractDataProvider createChildProviderImpl(
string name, hash<string, AbstractDataField> fields,
2468 *hash<auto> child_create_options) {
2469 throwUnimplementedException();
2479 deleteChildProviderImpl(
string name, *hash<auto> child_delete_options);
2491 addFieldImpl(AbstractDataField field, *hash<auto> field_add_options);
2503 updateFieldImpl(
string name, AbstractDataField field, *hash<auto> field_update_options);
2514 deleteFieldImpl(
string name, *hash<auto> field_delete_options);
2527 sendMessageImpl(
string message_id,
auto msg, *hash<auto> send_message_options);
2537 object getSchemaObjectImpl();
2547 *AbstractDataProviderType getRequestTypeImpl();
2557 *AbstractDataProviderType getResponseTypeImpl();
2567 *hash<string, AbstractDataProviderType> getErrorResponseTypesImpl();
2579 AbstractDataProviderType getErrorResponseTypeImpl(
string error_code);
2595 hash<DataProviderMessageInfo> getEventInfoImpl(
string event_id);
2607 hash<string, hash<DataProviderMessageInfo>> getEventTypesImpl();
2621 hash<DataProviderMessageInfo> getMessageInfoImpl(
string message_id);
2633 hash<string, hash<DataProviderMessageInfo>> getMessageTypesImpl();
2641 throwUnimplementedException();
2646 abstract
string getName();
2650 abstract hash<DataProviderInfo> getStaticInfoImpl();
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:47
Abstract bulk data operation class.
Definition: AbstractDataProviderBulkOperation.qc.dox.h:33
Defines the abstract class for data provider iterators; the destructor releases the iterator.
Definition: AbstractDataProviderBulkRecordInterface.qc.dox.h:33
The AbstractDataProvider class.
Definition: AbstractDataProvider.qc.dox.h:732
*hash< auto > searchFirstRecord(hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Returns the first record matching the search options.
static code cb_resolve_value
static callback for dynamic value resolution
Definition: AbstractDataProvider.qc.dox.h:983
const GenericExpressions
Generic search operator expressions.
Definition: AbstractDataProvider.qc.dox.h:966
hash< DataProviderSummaryInfo > getSummaryInfo()
Return data provider summary info.
hash< DataProviderMessageInfo > getEventInfo(string event_id)
Returns the description of an observable event, if any.
checkDeleteChild()
Ensures that the data provider supports deleting children.
*hash< string, hash< MapperRuntimeKeyInfo > > getMapperRuntimeKeys()
Returns custom data mapper runtime keys.
deleteChildProvider(string name, *hash< auto > child_delete_options)
Deletes a child data provider.
*hash< auto > searchSingleRecord(hash< auto > where_cond, *hash< auto > search_options)
Returns a single record matching the search options.
beginTransaction()
Begins a transaction with a data provider.
const DataProviderSummaryInfoKeys
A list of members names of the DataProviderSummaryInfoKeys hashdecl.
Definition: AbstractDataProvider.qc.dox.h:969
*AbstractDataProviderType getRequestType()
Returns the description of a successful request message, if any.
hash< auto > getInfoAsData(*bool with_type_info)
Returns static provider information as data; no objects are returned.
checkUpdate()
Ensures that the data provider supports record upserts.
AbstractDataProviderBulkOperation getBulkUpserter()
Returns a bulk upsert operation object for the data provider.
hash< DataProviderMessageInfo > getMessageInfo(string message_id)
Returns the description of an outbound message, if any.
const GenericExpressionImplementations
Generic expression implementations for data providers without native search functionality.
Definition: AbstractDataProvider.qc.dox.h:736
*hash< auto > searchSingleRecord(hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Returns a single record matching the search options.
hash< string, hash< DataProviderMessageInfo > > getEventTypes()
Returns a hash of all supported event types.
checkUpdateField()
Ensures that the data provider supports updating fields.
sendMessage(string message_id, auto msg, *hash< auto > send_message_options)
Sends a message from message-capable data providers.
checkObservable()
Ensures that the data provider supports observer pattern / event API.
*AbstractDataProvider getChildProvider(string name)
Returns the given child provider or NOTHING if the given child is unknown.
const GenericRecordSearchOptions
Generic record search options; see details below.
Definition: AbstractDataProvider.qc.dox.h:991
commit()
Commits data written to the data provider.
bool updateSingleRecord(hash< auto > set, hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Updates a single record matching the search options.
bool requiresTransactionManagement()
Returns True if the data provider supports transaction management.
AbstractDataProviderRecordIterator getRecordIterator(*hash< auto > search_options)
Returns an iterator iterating all records.
AbstractDataProviderBulkRecordInterface searchRecordsBulk(int block_size=1000, *hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
Definition: AbstractDataProvider.qc.dox.h:1162
constructor()
Creates the data provider.
setLogger(Logger logger)
Sets or replaces the logger.
deleteField(string name, *hash< auto > field_delete_options)
Deletes an existing field.
*hash< auto > searchFirstRecord(hash< auto > where_cond, *hash< auto > search_options)
Returns the first record matching the search options.
hash< DataProviderInfo > getInfo()
Returns data provider info.
int deleteRecords(*hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Deletes zero or more records.
*Logger logger
Logger for logging.
Definition: AbstractDataProvider.qc.dox.h:974
rollback()
Rolls back data written to the data provider.
int updateRecords(hash< auto > set, *hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Updates zero or more records matching the search options.
static auto evalGenericExpressionValue(hash< auto > rec, auto val)
Evaluates the given expression with the generic internal implementation and returns the result.
*AbstractDataProviderType getResponseType()
Returns the description of a response message, if this object represents a response message.
static bool callbacks_locked
flag if callbacks are locked
Definition: AbstractDataProvider.qc.dox.h:977
AbstractDataProviderRecordIterator requestSearchRecords(auto req, *hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options according to an API request.
Definition: AbstractDataProvider.qc.dox.h:1222
AbstractDataProviderBulkOperation getBulkInserter()
Returns a bulk insert operation object for the data provider.
*hash< auto > createRecord(hash< auto > rec, *hash< auto > create_options)
Creates the given record in the data provider.
static bool setDynamicValueCallbacks()
Ensures that no callbacks can be set for dynamic URI resolution.
bool updateSingleRecord(hash< auto > set, hash< auto > where_cond, *hash< auto > search_options)
Updates a single record matching the search options.
auto doRequest(auto req, *hash< auto > request_options)
Makes a request and returns the response.
*list< hash< DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
static code cb_value_needs_resolution
static callback the returns a bool if the value needs dynamic resolution
Definition: AbstractDataProvider.qc.dox.h:980
object getSchemaObject()
Returns the schema supporting this data provider.
checkCreate()
Ensures that the data provider supports record creation.
checkSchema()
Ensures that the data provider supports a schema.
private hash< DataProviderExpression > getEqualityComparisonExpression(int role, hash< DataProviderInfo > info, string key, auto value)
Returns an equality comparison expression.
Definition: AbstractDataProvider.qc.dox.h:1775
checkRead()
Ensures that the data provider supports read operations.
*string getDesc()
Returns the data provider description.
AbstractDataProviderBulkRecordInterface getBulkRecordInterface(int block_size=1000, *hash< auto > search_options)
Returns an iterator iterating all records with the bulk read API.
Definition: AbstractDataProvider.qc.dox.h:1124
int updateRecords(hash< auto > set, *hash< auto > where_cond, *hash< auto > search_options)
Updates zero or more records matching the search options.
private hash< DataProviderExpression > getSimpleArgumentIntern(int role, hash< DataProviderInfo > info, hash< DataProviderExpressionInfo > expinfo, string key, auto value)
Returns an argument for an expression.
Definition: AbstractDataProvider.qc.dox.h:1755
AbstractDataProviderRecordIterator searchRecords(*hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
checkDelete()
Ensures that the data provider supports record deletion.
hash< string, hash< DataProviderMessageInfo > > getMessageTypes()
Returns a hash of all supported outbound messages.
AbstractDataProviderType getErrorResponseType(string error_code)
Returns the type for the given error code.
checkMessages()
Ensures that the data provider supports sending messages.
AbstractDataProviderRecordIterator searchRecords(*hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
Definition: AbstractDataProvider.qc.dox.h:1179
*hash< string, AbstractDataProviderType > getErrorResponseTypes()
Returns a hash of error responses, if any.
checkDeleteField()
Ensures that the data provider supports deleting fields.
AbstractDataProvider getChildProviderPath(string path)
Returns the given child provider from a "/" separated path string.
constructor(Logger logger)
Creates the data provider with the given Logger.
addField(AbstractDataField field, *hash< auto > field_add_options)
Creates a new field.
AbstractDataProvider createChildProvider(string name, hash< string, AbstractDataField > fields, *hash< auto > child_create_options)
Creates a new child data provider and returns it after adding as a child.
Definition: AbstractDataProvider.qc.dox.h:1341
string upsertRecord(hash< auto > rec, *hash< auto > upsert_options)
Upserts the given record in the data provider.
updateField(string name, AbstractDataField field, *hash< auto > field_update_options)
Updates an existing field.
*hash< auto > getSearchExpression(*hash< auto > where_cond, *hash< auto > search_options)
Returns a search expression for a standard search hash.
checkRequest()
Ensures that the data provider supports the request API.
static private hash< DataProviderExpressionInfo > getExpression(int role, string exp, *hash< string, hash< DataProviderExpressionInfo > > expmap)
Returns an expression definition for an expression code or throws an exception.
Definition: AbstractDataProvider.qc.dox.h:1789
AbstractDataProvider getChildProviderEx(string name)
Returns the given child provider or throws an exception if the given child is unknown.
checkSearchExpressions()
Ensures that the data provider supports advanced search expressions.
AbstractDataProviderRecordIterator requestSearchRecords(auto req, *hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options according to an API request.
Definition: AbstractDataProvider.qc.dox.h:1206
checkAddField()
Ensures that the data provider supports adding fields.
checkCreateChild()
Ensures that the data provider supports creating children.
AbstractDataProviderBulkRecordInterface searchRecordsBulk(int block_size=1000, *hash< DataProviderExpression > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
Definition: AbstractDataProvider.qc.dox.h:1142
int deleteRecords(*hash< auto > where_cond, *hash< auto > search_options)
Deletes zero or more records.
checkUpsert()
Ensures that the data provider supports record upserts.
*list< string > getChildProviderNames()
Returns a list of child data provider names, if any.
Defines the abstract class for data provider iterators; the destructor releases the iterator.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:339
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:187
static AbstractDataProviderType get(Type type, *hash< auto > options, *hash< auto > tags)
Returns an appropriate object for the given type.
describes a data type based on a hash
Definition: HashDataType.qc.dox.h:36
describes a data type based on a hashdecl
Definition: QoreDataField.qc.dox.h:34
const DET_Operator
Definition: AbstractDataProvider.qc.dox.h:370
const DET_Function
Indicates a function expression.
Definition: AbstractDataProvider.qc.dox.h:373
const DP_SEARCH_OP_EQ
Identifies the generic data provider equals operator (=) for use in generic search criteria.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:81
const DP_SEARCH_OP_REGEX
Definition: AbstractDataProviderRecordIterator.qc.dox.h:51
const DP_SEARCH_OP_GT
Identifies the generic data provider greater than operator (>) for use in generic search criteria.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:66
const DP_SEARCH_OP_IN
Identifies the generic data provider "in" operator for use in generic search criteria.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:91
const DP_SEARCH_OP_GE
Identifies the generic data provider greater than or equals operator (>=) for use in generic search c...
Definition: AbstractDataProviderRecordIterator.qc.dox.h:71
const DP_SEARCH_OP_BETWEEN
Identifies the generic data provider "between" operator for use in generic search criteria.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:86
const DP_SEARCH_OP_NE
Identifies the generic data provider not equals operator (!= or <>) for use in generic search criteri...
Definition: AbstractDataProviderRecordIterator.qc.dox.h:76
const DP_SEARCH_OP_NOT
Identifies the generic data provider "not" operator for use in generic search criteria.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:96
const DP_SEARCH_OP_LT
Identifies the generic data provider less than (<) operator for use in generic search criteria.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:56
const DP_SEARCH_OP_LE
Identifies the generic data provider less than or equals (<=) operator for use in generic search crit...
Definition: AbstractDataProviderRecordIterator.qc.dox.h:61
const DP_OP_OR
OR logic.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:41
const DP_OP_AND
Definition: AbstractDataProviderRecordIterator.qc.dox.h:38
const MSG_None
Definition: AbstractDataProvider.qc.dox.h:199
const MSG_Async
Asynchronous output type, output can happen any time.
Definition: AbstractDataProvider.qc.dox.h:211
const MSG_Sync
Synchronous output type, an output message is expected after each observed event.
Definition: AbstractDataProvider.qc.dox.h:206
const UpsertResultUnchanged
Indicates that the record was left unchanged.
Definition: AbstractDataProvider.qc.dox.h:42
const UpsertResultDeleted
Indicates that the record was deleted.
Definition: AbstractDataProvider.qc.dox.h:45
const UpsertResultInserted
Definition: AbstractDataProvider.qc.dox.h:33
const UpsertResultVerified
Indicates that the record was verified as already in the target state.
Definition: AbstractDataProvider.qc.dox.h:39
const UpsertResultUpdated
Indicates that the record was updated.
Definition: AbstractDataProvider.qc.dox.h:36
const ER_All
Indicates an expression that can be used in all contexts.
Definition: AbstractDataProvider.qc.dox.h:254
const ER_Search
Definition: AbstractDataProvider.qc.dox.h:248
const ER_Field
Indicates an expression that can be used in a field.
Definition: AbstractDataProvider.qc.dox.h:251
const LC_Or
Indicates that boolean expressions can be combined with OR logic.
Definition: AbstractDataProvider.qc.dox.h:274
const LC_And
Definition: AbstractDataProvider.qc.dox.h:271
const LC_All
Indicates that all logic capabilities are supported.
Definition: AbstractDataProvider.qc.dox.h:277
const ST_Value
Indicates any literal value of the given type; i.e. not an operator or other expression.
Definition: AbstractDataProvider.qc.dox.h:223
const ST_Field
The signature type indicates a string field name when used as an argument, and the type is the field ...
Definition: AbstractDataProvider.qc.dox.h:229
const ST_Any
Definition: AbstractDataProvider.qc.dox.h:220
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
const DataProviderSignatureOptionalIntValueType
Data provider signature *int value type.
Definition: AbstractDataProvider.qc.dox.h:329
const DataProviderSignatureStringType
Data provider signature string type.
Definition: AbstractDataProvider.qc.dox.h:353
const DataProviderSignatureDateType
Data provider signature date type.
Definition: AbstractDataProvider.qc.dox.h:359
const DataProviderSignatureHashValueType
Data provider signature hash value type.
Definition: AbstractDataProvider.qc.dox.h:341
const SignatureTypeDescMap
Maps signature description values to integer codes.
Definition: AbstractDataProvider.qc.dox.h:240
const SignatureTypeCodeMap
Maps signature type codes to descriptions.
Definition: AbstractDataProvider.qc.dox.h:233
const DataProviderSignatureOptionalStringValueType
Data provider signature optional string value type.
Definition: AbstractDataProvider.qc.dox.h:317
const LogicDescMap
Logic map from descriptions to integer codes.
Definition: AbstractDataProvider.qc.dox.h:287
const DataProviderSignatureFieldType
Data provider signature field type.
Definition: AbstractDataProvider.qc.dox.h:299
const ExpressionTypeDescMap
Maps DataProvider expression type descriptions to integer codes.
Definition: AbstractDataProvider.qc.dox.h:383
const DataProviderSignatureBoolType
Data provider signature bool type.
Definition: AbstractDataProvider.qc.dox.h:347
const AbstractDataProviderTypeMap
Maps Qore type name constant values to AbstractDataProviderType values.
Definition: AbstractDataProviderType.qc.dox.h:121
const DataProviderSignatureListValueType
Data provider signature list value type.
Definition: AbstractDataProvider.qc.dox.h:335
const DataProviderSignatureStringValueType
Data provider signature string value type.
Definition: AbstractDataProvider.qc.dox.h:311
const DataProviderSignatureAnyType
Data provider signature any type.
Definition: AbstractDataProvider.qc.dox.h:305
const RoleCodeMap
Role map from codes to descriptions.
Definition: AbstractDataProvider.qc.dox.h:258
const LogicCodeMap
Logic map from codes to descriptions.
Definition: AbstractDataProvider.qc.dox.h:281
const RoleDescMap
Role map from descriptions to codes.
Definition: AbstractDataProvider.qc.dox.h:263
const ExpressionTypeCodeMap
Maps DataProvider expression type codes to descriptions.
Definition: AbstractDataProvider.qc.dox.h:377
const DataProviderSignatureIntValueType
Data provider signature int value type.
Definition: AbstractDataProvider.qc.dox.h:323
Allowed value hash.
Definition: AbstractDataProvider.qc.dox.h:49
auto value
The value.
Definition: AbstractDataProvider.qc.dox.h:51
string desc
Description for the value.
Definition: AbstractDataProvider.qc.dox.h:54
Data provider expression.
Definition: AbstractDataProvider.qc.dox.h:426
string exp
Expression name.
Definition: AbstractDataProvider.qc.dox.h:428
softlist< auto > args
Expression arguments.
Definition: AbstractDataProvider.qc.dox.h:434
Data provider signature info.
Definition: AbstractDataProvider.qc.dox.h:386
string symbol
The symbol to use when rendering expressions.
Definition: AbstractDataProvider.qc.dox.h:402
string name
The display name.
Definition: AbstractDataProvider.qc.dox.h:396
string label
The label used for the expression.
Definition: AbstractDataProvider.qc.dox.h:393
bool varargs
The last argument can be repeated indefinitely.
Definition: AbstractDataProvider.qc.dox.h:416
int role
The expression role code / bitfield.
Definition: AbstractDataProvider.qc.dox.h:407
int type
The type of expression; see DataProvider Expression Type Codes.
Definition: AbstractDataProvider.qc.dox.h:388
softlist< hash< DataProviderSignatureTypeInfo > > args
Argument types.
Definition: AbstractDataProvider.qc.dox.h:410
string desc
The description of the operation.
Definition: AbstractDataProvider.qc.dox.h:399
AbstractDataProviderType return_type
The return type.
Definition: AbstractDataProvider.qc.dox.h:413
Data provider field reference.
Definition: AbstractDataProvider.qc.dox.h:420
string field
The name of the field being referenced.
Definition: AbstractDataProvider.qc.dox.h:422
Data provider info.
Definition: AbstractDataProvider.qc.dox.h:438
string supports_messages
Output message support.
Definition: AbstractDataProvider.qc.dox.h:592
bool supports_delete
Does the data provider support record deletion?
Definition: AbstractDataProvider.qc.dox.h:472
*hash< string, hash< DataProviderMessageInfo > > events
hash of observable events and event types
Definition: AbstractDataProvider.qc.dox.h:699
bool supports_bulk_read
Does the data provider support native / optimized bulk reads?
Definition: AbstractDataProvider.qc.dox.h:485
*hash< string, hash< DataProviderOptionInfo > > add_field_options
Add field options supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:664
*hash< string, hash< DataProviderMessageInfo > > messages
List of output message IDs and message types.
Definition: AbstractDataProvider.qc.dox.h:706
bool transaction_management
Does the data provider require transaction management?
Definition: AbstractDataProvider.qc.dox.h:516
*hash< string, hash< DataProviderExpressionInfo > > expressions
Expressions (operators and functions) supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:692
bool children_can_support_observers
Can any child data providers support the observer pattern / event API?
Definition: AbstractDataProvider.qc.dox.h:607
bool supports_child_delete
Does the data provider support deleting new child providers?
Definition: AbstractDataProvider.qc.dox.h:540
string type
The name of the provider type.
Definition: AbstractDataProvider.qc.dox.h:447
bool supports_delete_field
Does the data provider support deleting fields?
Definition: AbstractDataProvider.qc.dox.h:561
bool supports_child_create
Does the data provider support creating new child providers?
Definition: AbstractDataProvider.qc.dox.h:533
*hash< string, hash< DataProviderOptionInfo > > child_delete_options
Child deletion options supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:657
bool supports_native_search
Does the data provider support native record searching?
Definition: AbstractDataProvider.qc.dox.h:477
*hash< string, hash< DataProviderOptionInfo > > request_options
Request options supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:643
*hash< string, hash< DataProviderOptionInfo > > search_options
Search options supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:638
string name
Data provider name.
Definition: AbstractDataProvider.qc.dox.h:442
bool supports_add_field
Does the data provider support adding new fields?
Definition: AbstractDataProvider.qc.dox.h:547
bool children_can_support_messages
Can any child data providers support messages?
Definition: AbstractDataProvider.qc.dox.h:612
bool supports_bulk_upsert
Does the data provider support native / optimized bulk upserts?
Definition: AbstractDataProvider.qc.dox.h:501
*hash< string, hash< DataProviderOptionInfo > > child_create_options
Child creation options supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:650
hash< string, hash< MapperRuntimeKeyInfo > > mapper_keys
A hash of mapper key information.
Definition: AbstractDataProvider.qc.dox.h:718
bool supports_read
Does the data provider support reading.
Definition: AbstractDataProvider.qc.dox.h:452
bool record_requires_search_options
Do we require search options to retrieve the record type?
Definition: AbstractDataProvider.qc.dox.h:526
bool supports_update
Does the data provider support record updates?
Definition: AbstractDataProvider.qc.dox.h:462
bool supports_search_expressions
Does this data provide support advanced search experssions?
Definition: AbstractDataProvider.qc.dox.h:575
*hash< string, hash< DataProviderOptionInfo > > upsert_options
Upsert options supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:633
bool supports_update_field
Does the data provider support updating existing fields?
Definition: AbstractDataProvider.qc.dox.h:554
bool supports_request
Does the data provider support the request API?
Definition: AbstractDataProvider.qc.dox.h:506
*hash< string, hash< DataProviderOptionInfo > > constructor_options
Constructor options supported by the data provider for the constructor variant taking a hash.
Definition: AbstractDataProvider.qc.dox.h:623
*hash< string, hash< DataProviderOptionInfo > > create_options
Create options supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:628
bool supports_create
Does the data provider support record creation?
Definition: AbstractDataProvider.qc.dox.h:457
*list< string > children
A list of child data providers in this data provider.
Definition: AbstractDataProvider.qc.dox.h:728
bool supports_observable
Does this data provider support the event API / observer pattern?
Definition: AbstractDataProvider.qc.dox.h:582
bool supports_upsert
Does the data provider support record upserts (create or update)?
Definition: AbstractDataProvider.qc.dox.h:467
bool supports_bulk_create
Does the data provider support native / optimized bulk creation?
Definition: AbstractDataProvider.qc.dox.h:493
*hash< string, hash< DataProviderOptionInfo > > delete_field_options
Delete field options supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:678
*hash< string, hash< DataProviderOptionInfo > > send_message_options
Send message options supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:685
bool supports_children
Does the data provider support children?
Definition: AbstractDataProvider.qc.dox.h:511
bool children_can_support_apis
Can any child data providers offer API services (request - response data providers)?
Definition: AbstractDataProvider.qc.dox.h:597
bool children_can_support_records
Can any child data providers offer record-based providers?
Definition: AbstractDataProvider.qc.dox.h:602
*hash< string, hash< DataProviderOptionInfo > > update_field_options
Update field options supported by the data provider.
Definition: AbstractDataProvider.qc.dox.h:671
*string desc
A markdown description of the data provider.
Definition: AbstractDataProvider.qc.dox.h:723
bool supports_schema
Does the data provider support a schema?
Definition: AbstractDataProvider.qc.dox.h:568
int search_logic_capabilities
Supported search logic capabilities.
Definition: AbstractDataProvider.qc.dox.h:711
*string schema_type
Returns the schema type supported by this data provider.
Definition: AbstractDataProvider.qc.dox.h:618
bool has_record
Does the data provider provide a record?
Definition: AbstractDataProvider.qc.dox.h:521
Data provider message and event info.
Definition: AbstractDataProvider.qc.dox.h:178
string desc
The description of the message or event.
Definition: AbstractDataProvider.qc.dox.h:182
AbstractDataProviderType type
The data type of the message or event.
Definition: AbstractDataProvider.qc.dox.h:185
Data provider option info.
Definition: AbstractDataProvider.qc.dox.h:58
softlist< AbstractDataProviderType > type
The option value type or types.
Definition: AbstractDataProvider.qc.dox.h:60
bool sensitive
Is the option value sensitive?
Definition: AbstractDataProvider.qc.dox.h:72
auto default_value
Any default value.
Definition: AbstractDataProvider.qc.dox.h:69
string desc
The option description.
Definition: AbstractDataProvider.qc.dox.h:66
*softlist< hash< AllowedValueInfo > > allowed_values
List of allowed values (enum)
Definition: AbstractDataProvider.qc.dox.h:75
bool required
Required flag.
Definition: AbstractDataProvider.qc.dox.h:63
Data provider signature argument info.
Definition: AbstractDataProvider.qc.dox.h:290
int type_code
The signature type code.
Definition: AbstractDataProvider.qc.dox.h:295
AbstractDataProviderType type
Argument types.
Definition: AbstractDataProvider.qc.dox.h:292
Data provider summary info.
Definition: AbstractDataProvider.qc.dox.h:79
bool supports_observable
Does this data provider support the event API / observer pattern?
Definition: AbstractDataProvider.qc.dox.h:144
bool supports_bulk_upsert
Does the data provider support native / optimized bulk upserts?
Definition: AbstractDataProvider.qc.dox.h:123
bool transaction_management
Does the data provider require transaction management?
Definition: AbstractDataProvider.qc.dox.h:132
bool children_can_support_apis
Can any child data providers offer API services (request - response data providers)?
Definition: AbstractDataProvider.qc.dox.h:159
bool supports_create
Does the data provider support record creation?
Definition: AbstractDataProvider.qc.dox.h:93
string name
The name of the data provider.
Definition: AbstractDataProvider.qc.dox.h:81
bool supports_read
Does the data provider support reading.
Definition: AbstractDataProvider.qc.dox.h:90
string desc
The description of the data provider; supports markdown.
Definition: AbstractDataProvider.qc.dox.h:84
bool has_record
Does the data provider provide a record?
Definition: AbstractDataProvider.qc.dox.h:135
bool children_can_support_observers
Can any child data providers support the observer pattern / event API?
Definition: AbstractDataProvider.qc.dox.h:169
bool supports_upsert
Does the data provider support record upserts (create or update)?
Definition: AbstractDataProvider.qc.dox.h:99
bool supports_children
Does the data provider support children?
Definition: AbstractDataProvider.qc.dox.h:129
bool supports_bulk_create
Does the data provider support native / optimized bulk creation?
Definition: AbstractDataProvider.qc.dox.h:117
bool supports_delete
Does the data provider support record deletion?
Definition: AbstractDataProvider.qc.dox.h:102
bool supports_request
Does the data provider support the request API?
Definition: AbstractDataProvider.qc.dox.h:126
bool supports_search_expressions
Does this data provide support advanced search experssions?
Definition: AbstractDataProvider.qc.dox.h:138
bool children_can_support_messages
Can any child data providers support messages?
Definition: AbstractDataProvider.qc.dox.h:174
bool supports_native_search
Does the data provider support native record searching?
Definition: AbstractDataProvider.qc.dox.h:105
string supports_messages
Message support.
Definition: AbstractDataProvider.qc.dox.h:154
string type
The name of the provider type.
Definition: AbstractDataProvider.qc.dox.h:87
bool supports_update
Does the data provider support record updates?
Definition: AbstractDataProvider.qc.dox.h:96
bool supports_bulk_read
Does the data provider support native / optimized bulk reads?
Definition: AbstractDataProvider.qc.dox.h:111
bool children_can_support_records
Can any child data providers offer record-based providers?
Definition: AbstractDataProvider.qc.dox.h:164