DB
FunctionsString

String

74 String functions in the NYXDB native function registry, with signatures, briefs, and measured medians where available.

74 functions in the string family. Each name links to its page; marks the variadic argument list (the engine declares no named parameters). A Measured value appears only where a benchmark corpus case joins by name (server-class hardware, median).

FunctionTypeDescriptionMeasured
ascii(…) → UInt64scalarASCII code of first byte.
ascii_as_blob(…) → StringscalarASCII-safe binary text.
btrim(…) → StringscalarTrim both ends of a string.
chr(…) → StringscalarSingle-byte character from numeric code.
concat(…) → StringscalarConcatenate values into one string.
concat_ws(…) → StringscalarConcatenate values using a separator.
ends_with(…) → BoolscalarTest whether a string ends with a suffix.
initcap(…) → StringscalarTitle-case ASCII words.
initcap_utf8(…) → DynamicscalarTitle-case UTF-8 words.
left(…) → DynamicscalarTake left part of a string.
left_utf8(…) → DynamicscalarTake left part of a UTF-8 string.
length(…) → DynamicscalarString length in bytes.
length_utf8(…) → DynamicscalarUTF-8 string length in code points.
lower(…) → DynamicscalarLowercase string.
lower_utf8(…) → DynamicscalarLowercase UTF-8 string.
lpad(…) → DynamicscalarLeft-pad a string.
lpad_utf8(…) → DynamicscalarLeft-pad a UTF-8 string.
ltrim(…) → DynamicscalarTrim characters from the left.
overlay(…) → DynamicscalarOverlay substring.
overlay_utf8(…) → DynamicscalarOverlay substring.
position(…) → DynamicscalarFind substring position.
position_case_insensitive(…) → DynamicscalarFind substring position (case-insensitive).
position_case_insensitive_utf8(…) → DynamicscalarFind substring position (case-insensitive).
position_utf8(…) → DynamicscalarFind substring position.
regexp_count(…) → DynamicscalarCount regular-expression matches.
regexp_extract(…) → DynamicscalarExtract by regular expression.
regexp_instr(…) → DynamicscalarPosition of a regular-expression match.
regexp_like(…) → DynamicscalarRegular-expression match predicate.
regexp_match(…) → DynamicscalarFirst regular-expression match.
regexp_matches(…) → DynamicscalarAll regular-expression matches.
regexp_quote_meta(…) → DynamicscalarEscape a string for regex literal use.
regexp_replace(…) → DynamicscalarRegular-expression replace.
regexp_split_to_array(…) → StringscalarSplit string by regex into an array.
regexp_split_to_table(…) → StringscalarSplit string by regex into rows.
regexp_substr(…) → StringscalarRegex substring.
repeat(…) → StringscalarRepeat a string.
replace(…) → StringscalarSubstring replacement.
replace_all(…) → StringscalarSubstring replacement.
replace_one(…) → StringscalarSubstring replacement.
replace_regex(…) → StringscalarRegular-expression replacement.
replace_regexp(…) → StringscalarRegular-expression replacement.
replace_regexp_all(…) → StringscalarRegular-expression replacement.
replace_regexp_one(…) → StringscalarRegular-expression replacement.
reverse(…) → StringscalarReverse a string.
reverse_dns_query(…) → StringscalarReverse-DNS query name for an IP address.
reverse_utf8(…) → StringscalarReverse a string.
right(…) → StringscalarTake right part of a string.
right_utf8(…) → StringscalarTake right part of a string.
rpad(…) → StringscalarRight-pad a string.
rpad_utf8(…) → StringscalarRight-pad a UTF-8 string.
rtrim(…) → StringscalarTrim characters from the right.
split_by_alpha(…) → StringscalarSplit a string by alpha.
split_by_char(…) → StringscalarSplit a string by char.
split_by_non_alpha(…) → StringscalarSplit a string by non alpha.
split_by_regexp(…) → StringscalarSplit a string by regexp.
split_by_string(…) → StringscalarSplit a string by string.
split_by_whitespace(…) → StringscalarSplit a string by whitespace.
split_part(…) → StringscalarSelect a delimited field.
starts_with(…) → BoolscalarPrefix test.
strpos(…) → UInt64scalarFind substring position.
substring(…) → StringscalarSubstring.
substring_index(…) → StringscalarSubstring up to a delimiter occurrence.
substring_index_utf8(…) → StringscalarSubstring up to a delimiter occurrence.
substring_utf8(…) → StringscalarSubstring.
translate(…) → StringscalarCharacter translation.
translate_utf8(…) → StringscalarCharacter translation.
trim(…) → StringscalarTrim characters from both ends.
trim_array(…) → StringscalarTrim whitespace for an array of strings.
trim_both(…) → StringscalarTrim characters from both ends.
trim_left(…) → StringscalarTrim characters from the left.
trim_right(…) → StringscalarTrim characters from the right.
trim_scale(…) → StringscalarTrim trailing zeros from a numeric string.
upper(…) → StringscalarUppercase string.
upper_utf8(…) → StringscalarUppercase UTF-8 string.