Qorus Integration Engine® Enterprise Edition 7.0.6_prod
Loading...
Searching...
No Matches
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

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

Functions

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
 
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
 
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
 
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)
 
string OMQ::UserApi::serialize_qorus_data (auto d)
 returns a string giving the default serialization of the given data structure for storage in Qorus
 
auto OMQ::UserApi::deserialize_qorus_data (string data)
 parses serialized data in either XML-RPC or YAML format and returns the corresponding qore data
 
string OMQ::UserApi::get_salted_string (string str, binary salt)
 returns a string that has been x-ored with binary "salt" data
 
softint OMQ::UserApi::next_sequence_value (AbstractDatasource ds, string name)
 returns the next sequence value for the given sequence
 
string OMQ::UserApi::get_ds_desc (hash< auto > h, *int dd_opts)
 returns a datasource description string from a datasource configuration hash
 
list< hash< CallStackInfo > > OMQ::UserApi::get_thread_call_stack ()
 allows Qore::get_thread_call_stack() to be called from Qorus interfaces
 
bool OMQ::UserApi::list_subset (list< auto > small, list< auto > big)
 returns True if small only has elements that are present in big (small <= big) with soft comparisons
 
bool OMQ::UserApi::list_subset (auto small, list< auto > big)
 returns True if small is in big (or big is empty and small is NOTHING) otherwise returns False; uses soft comparisons
 
bool OMQ::UserApi::list_subset_hard (list< auto > small, list< auto > big)
 returns True if small only has elements that are present in big (small <= big) with hard comparisons
 
bool OMQ::UserApi::list_subset_hard (auto small, list< auto > big)
 returns True if small is in big (or big is empty and small is NOTHING) otherwise returns False; uses hard comparisons
 
bool OMQ::UserApi::lists_equal_ignore_order (list< auto > list1, list< auto > list2)
 returns True if the two list arguments are equal ignoring the order of the elements with soft comparisons
 
bool OMQ::UserApi::lists_equal_ignore_order_hard (list< auto > list1, list< auto > list2)
 returns True if the two list arguments are equal ignoring the order of the elements with hard comparisons
 
deprecated auto OMQ::UserApi::getOracleNumber (auto v)
 returns a string suitable for dynamic SQL
 
deprecated auto OMQ::UserApi::getSQLNumber (auto v)
 returns a string suitable for dynamic SQL
 
deprecated 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
 
deprecated string OMQ::UserApi::getOracleString (auto v, int size=0)
 returns a string suitable for dynamic SQL
 
deprecated string OMQ::UserApi::getSQLString (auto v, int size=0)
 returns a string suitable for dynamic SQL
 
deprecated 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
 
deprecated string OMQ::UserApi::fix_quotes (string str)
 doubles single quotes (\') in strings and returns the new string
 
deprecated string OMQ::UserApi::fix_quotes (reference str)
 doubles single quotes (\') in strings and returns the new string
 
deprecated 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
 
deprecated 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
 
deprecated list< auto > OMQ::UserApi::remove_from_list_index (list< auto > list, int index)
 remove an element from a list
 
deprecated string OMQ::UserApi::oracle_date (date date)
 returns a string from a date suitable for use in a dynamic oracle SQL string
 
deprecated 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
 
deprecated string OMQ::UserApi::create_sql_string ()
 returns a string suitable for use in a dyanamic Oracle SQL query string based on the arguments passed
 
deprecated 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
 
deprecated bool OMQ::UserApi::parseBoolean (auto v)
 
deprecated string OMQ::UserApi::get_exception_string (hash< auto > ex)
 
deprecated int OMQ::UserApi::compareVersion (string lv, string rv)
 

Variables

const Priv::OLD_QORUS_LEVEL_TO_LEVEL
 Old qorus loging levels to currenct logger level.
 
const OMQ::UserApi::DD_WITH_PASSWORD = 1 << 0
 includes the password in the return value
 
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