Qorus Integration Engine®  4.0.3.p2_git
misc.ql File Reference

defines functions used in the client library More...

Classes

class  OMQ::AbstractConnectionFileHelper
 this class is used to parse the connection files in the server and client More...
 
class  OMQ::CryptoKeyHelper
 manages Qorus encryption keys More...
 

Namespaces

 OMQ
 main Qorus namespace
 
 OMQ::UserApi
 user API namespace root
 

Functions

deprecated public auto OMQ::UserApi::getOracleNumber (auto v)
 returns a string suitable for dynamic SQL More...
 
deprecated public auto OMQ::UserApi::getSQLNumber (auto v)
 returns a string suitable for dynamic SQL More...
 
deprecated public auto OMQ::UserApi::get_sql_number (auto v)
 returns either the value returned or the string "NULL" if the type cannot be converted to a number More...
 
deprecated public string OMQ::UserApi::getOracleString (auto v, int size=0)
 returns a string suitable for dynamic SQL More...
 
deprecated public string OMQ::UserApi::getSQLString (auto v, int size=0)
 returns a string suitable for dynamic SQL More...
 
deprecated public string OMQ::UserApi::get_sql_string (auto v, int size=0)
 returns a singly-quoted string aimed to be directly usable in dynamic SQL queries with single quote (\') characters escaped or returns the string "NULL" if the argument type is not int, float, bool, or string More...
 
deprecated public string OMQ::UserApi::fix_quotes (string str)
 doubles single quotes (\') in strings and returns the new string More...
 
deprecated public string OMQ::UserApi::fix_quotes (reference str)
 doubles single quotes (\') in strings and returns the new string More...
 
deprecated public string OMQ::UserApi::make_select_list (auto list)
 returns a string based on a list, processed for the values in the list to be used in an SQL string with an Oracle DB More...
 
deprecated public string OMQ::UserApi::make_select_list2 (auto driver, auto list)
 returns a string based on a list, processed for the values in the list to be used in a dynamic SQL string More...
 
public list< auto > OMQ::UserApi::remove_from_list (list< auto > list, auto val)
 uses the select operator to remove all occurences of a value from a list More...
 
public list< auto > OMQ::UserApi::remove_from_list (reference list, auto val)
 uses the select operator to remove all occurences of a value from a list More...
 
deprecated public list< auto > OMQ::UserApi::remove_from_list_index (list< auto > list, int index)
 remove an element from a list More...
 
deprecated public string OMQ::UserApi::oracle_date (date date)
 returns a string from a date suitable for use in a dynamic oracle SQL string More...
 
deprecated public string OMQ::UserApi::db_date (string driver, date date)
 returns a string from a date suitable for use in a dynamic SQL string depending on the driver More...
 
deprecated public string OMQ::UserApi::create_sql_string ()
 returns a string suitable for use in a dyanamic Oracle SQL query string based on the arguments passed More...
 
deprecated public string OMQ::UserApi::create_sql_string2 (auto driver)
 returns a string suitable for use in a dynamic SQL query string (driver-dependent) based on the arguments passed More...
 
public string OMQ::UserApi::xml_change_encoding (string xml, string enc)
 returns a string with the XML encoding name changed to that given as an argument More...
 
public string OMQ::UserApi::xml_get_encoding (string xml)
 returns the XML encoding name given in the string (not the actual string encoding, which may be different) More...
 
deprecated public bool OMQ::UserApi::parseBoolean (auto v)
 
deprecated public string OMQ::UserApi::get_exception_string (hash< auto > ex)
 
deprecated public int OMQ::UserApi::compareVersion (string lv, string rv)
 
public string OMQ::UserApi::serialize_qorus_data (auto d)
 returns a string giving the default serialization of the given data structure for storage in Qorus More...
 
public auto OMQ::UserApi::deserialize_qorus_data (string data)
 parses serialized data in either XML-RPC or YAML format and returns the corresponding qore data More...
 
public string OMQ::UserApi::get_salted_string (string str, binary salt)
 returns a string that has been x-ored with binary "salt" data
 
public softint OMQ::UserApi::next_sequence_value (AbstractDatasource ds, string name)
 returns the next sequence value for the given sequence
 
public string OMQ::UserApi::get_ds_desc (hash< auto > h, *int dd_opts)
 returns a datasource description string from a datasource configuration hash More...
 
public list< hash< CallStackInfo > > OMQ::UserApi::get_thread_call_stack ()
 allows Qore::get_thread_call_stack() to be called from Qorus interfaces More...
 

Variables

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

Detailed Description

defines functions used in the client library