Qore SqlUtil Module Reference 1.8.1
|
Functions | |
hash< UpdateOperatorInfo > | SqlUtil::make_uop (string uop, auto arg, *hash< UpdateOperatorInfo > nest) |
hash< UpdateOperatorInfo > | SqlUtil::uop_append (string arg, *hash< UpdateOperatorInfo > nest) |
returns an UpdateOperatorInfo hash for the "append" or concatenate operator with the given argument More... | |
hash< UpdateOperatorInfo > | SqlUtil::uop_divide (auto arg, *hash< UpdateOperatorInfo > nest) |
returns an UpdateOperatorInfo hash for the "/" operator with the given arguments More... | |
hash< UpdateOperatorInfo > | SqlUtil::uop_lower (*hash< UpdateOperatorInfo > nest) |
returns an UpdateOperatorInfo hash for the "lower" operator with the given argument; returns a column value in lower case More... | |
hash< UpdateOperatorInfo > | SqlUtil::uop_minus (auto arg, *hash< UpdateOperatorInfo > nest) |
returns an UpdateOperatorInfo hash for the "-" operator with the given arguments More... | |
hash< UpdateOperatorInfo > | SqlUtil::uop_multiply (auto arg, *hash< UpdateOperatorInfo > nest) |
returns an UpdateOperatorInfo hash for the "*" operator with the given arguments More... | |
hash< UpdateOperatorInfo > | SqlUtil::uop_plus (auto arg, *hash< UpdateOperatorInfo > nest) |
returns an UpdateOperatorInfo hash for the "+" operator with the given arguments More... | |
hash< UpdateOperatorInfo > | SqlUtil::uop_prepend (string arg, *hash< UpdateOperatorInfo > nest) |
returns an UpdateOperatorInfo hash for the "prepend" operator with the given argument More... | |
hash< UpdateOperatorInfo > | SqlUtil::uop_seq (string seq) |
returns an UpdateOperatorInfo hash for the "seq" operator with the given argument giving the sequence name whose value should be returned More... | |
hash< UpdateOperatorInfo > | SqlUtil::uop_seq_currval (string seq) |
returns an UpdateOperatorInfo hash for the "seq" operator with the given argument giving the sequence name whose current value should be returned More... | |
hash< UpdateOperatorInfo > | SqlUtil::uop_substr (int start, *int count, *hash< UpdateOperatorInfo > nest) |
returns an UpdateOperatorInfo hash for the "substr" operator with the given arguments; returns a substring of a column value More... | |
hash< UpdateOperatorInfo > | SqlUtil::uop_upper (*hash< UpdateOperatorInfo > nest) |
returns an UpdateOperatorInfo hash for the "upper" operator with the given argument; returns a column value in upper case More... | |
These are functions that can be used as the values of update keys in select statements:
Update operator functions can be nested as in the following example:
hash< UpdateOperatorInfo > SqlUtil::make_uop | ( | string | uop, |
auto | arg, | ||
*hash< UpdateOperatorInfo > | nest | ||
) |
returns an UpdateOperatorInfo hash
uop | the update operator (one of SQL Update Operators) |
arg | the argument to the operator |
nest | any nested operation to the operator |
hash< UpdateOperatorInfo > SqlUtil::uop_append | ( | string | arg, |
*hash< UpdateOperatorInfo > | nest | ||
) |
returns an UpdateOperatorInfo hash for the "append"
or concatenate operator with the given argument
arg | the text to prepend to the row values in the output column |
nest | any nested operation to the operator |
hash< UpdateOperatorInfo > SqlUtil::uop_divide | ( | auto | arg, |
*hash< UpdateOperatorInfo > | nest | ||
) |
returns an UpdateOperatorInfo hash for the "/"
operator with the given arguments
arg | numeric value to divide the column by |
nest | any nested operation to the operator |
hash< UpdateOperatorInfo > SqlUtil::uop_lower | ( | *hash< UpdateOperatorInfo > | nest | ) |
returns an UpdateOperatorInfo hash for the "lower"
operator with the given argument; returns a column value in lower case
nest | any nested operation to the operator |
hash< UpdateOperatorInfo > SqlUtil::uop_minus | ( | auto | arg, |
*hash< UpdateOperatorInfo > | nest | ||
) |
returns an UpdateOperatorInfo hash for the "-"
operator with the given arguments
arg | numeric value to subtract from the column |
nest | any nested operation to the operator |
hash< UpdateOperatorInfo > SqlUtil::uop_multiply | ( | auto | arg, |
*hash< UpdateOperatorInfo > | nest | ||
) |
returns an UpdateOperatorInfo hash for the "*"
operator with the given arguments
arg | numeric value to multiply the column by |
nest | any nested operation to the operator |
hash< UpdateOperatorInfo > SqlUtil::uop_plus | ( | auto | arg, |
*hash< UpdateOperatorInfo > | nest | ||
) |
returns an UpdateOperatorInfo hash for the "+"
operator with the given arguments
arg | numeric value to add to the column |
nest | any nested operation to the operator |
hash< UpdateOperatorInfo > SqlUtil::uop_prepend | ( | string | arg, |
*hash< UpdateOperatorInfo > | nest | ||
) |
returns an UpdateOperatorInfo hash for the "prepend"
operator with the given argument
arg | the text to prepend to the row values in the output column |
nest | any nested operation to the operator |
hash< UpdateOperatorInfo > SqlUtil::uop_seq | ( | string | seq | ) |
returns an UpdateOperatorInfo hash for the "seq"
operator with the given argument giving the sequence name whose value should be returned
seq | the name of the sequence whose value should be returned |
hash< UpdateOperatorInfo > SqlUtil::uop_seq_currval | ( | string | seq | ) |
returns an UpdateOperatorInfo hash for the "seq"
operator with the given argument giving the sequence name whose current value should be returned
seq | the name of the sequence whose current value should be returned |
hash< UpdateOperatorInfo > SqlUtil::uop_substr | ( | int | start, |
*int | count, | ||
*hash< UpdateOperatorInfo > | nest | ||
) |
returns an UpdateOperatorInfo hash for the "substr"
operator with the given arguments; returns a substring of a column value
start | position where the substring starts |
count | length of the substring in characters |
nest | any nested operation to the operator |
hash< UpdateOperatorInfo > SqlUtil::uop_upper | ( | *hash< UpdateOperatorInfo > | nest | ) |
returns an UpdateOperatorInfo hash for the "upper"
operator with the given argument; returns a column value in upper case
nest | any nested operation to the operator |