Qorus Integration Engine® Community Edition 6.0.0_dev
Loading...
Searching...
No Matches
OMQ::UserApi Namespace Reference

user API namespace root More...

Namespaces

namespace  Job
 main job API namespace
 
namespace  Service
 Qorus service API namespace.
 
namespace  Workflow
 main workflow API namespace
 

Classes

class  QorusConfigurationItemProvider
 Base class for object providing configuration items. More...
 
class  QorusRestartableTransaction
 Class that allows for managing restartable transactions. More...
 
class  UserApi
 main common Qorus API class More...
 

Functions

*string restart_transaction (string driver, hash< auto > ex)
 returns a string error message if any exception in the chain passed was caused by a recoverable DB error, otherwise returns NOTHING More...
 
bool duplicate_key (string driver, hash< auto > ex)
 Returns True if the error was caused by a duplicate key error. More...
 
list< auto > remove_from_list (list< auto > list, auto val)
 uses the select operator to remove all occurences of a value from a list More...
 
list< auto > remove_from_list (reference list, auto val)
 uses the select operator to remove all occurences of a value from a list More...
 
string xml_change_encoding (string xml, string enc)
 returns a string with the XML encoding name changed to that given as an argument More...
 
string xml_get_encoding (string xml)
 returns the XML encoding name given in the string (not the actual string encoding, which may be different) More...
 
string serialize_qorus_data (auto d)
 returns a string giving the default serialization of the given data structure for storage in Qorus More...
 
auto deserialize_qorus_data (string data)
 parses serialized data in either XML-RPC or YAML format and returns the corresponding qore data More...
 
string get_salted_string (string str, binary salt)
 returns a string that has been x-ored with binary "salt" data
 
softint next_sequence_value (AbstractDatasource ds, string name)
 returns the next sequence value for the given sequence
 
string get_ds_desc (hash< auto > h, *int dd_opts)
 returns a datasource description string from a datasource configuration hash More...
 
list< hash< CallStackInfo > > get_thread_call_stack ()
 allows Qore::get_thread_call_stack() to be called from Qorus interfaces More...
 

Variables

public const DD_WITH_PASSWORD = 1 << 0
 includes the password in the return value More...
 
public const DD_SHORT = 1 << 1
 does not include character encoding and options in the return value
 

Detailed Description

Function Documentation

◆ duplicate_key()

bool OMQ::UserApi::duplicate_key ( string  driver,
hash< auto >  ex 
)

Returns True if the error was caused by a duplicate key error.

Since
Qorus 5.1

◆ restart_transaction()

*string OMQ::UserApi::restart_transaction ( string  driver,
hash< auto >  ex 
)

returns a string error message if any exception in the chain passed was caused by a recoverable DB error, otherwise returns NOTHING

Parameters
driverthe database driver name, which must be a driver supported by the Qorus system schema, currently one of "oracle", "pgsql", or "mysql", otherwise an UNSUPPORTED-DRIVER exception is thrown
exthe exception hash
Returns
a string error message if any exception in the chain passed was caused by a recoverable DB error, otherwise returns NOTHING
Exceptions
UNSUPPORTED-DRIVERonly "oracle", "pgsql", and "mysql" are currently supported
Since
Qorus 3.1.1.p1