Module string

Module string 

Source

Functionsยง

enclose_quotes
Encloses a string in single quotes for SQL string literals.
escape_sql
Escapes special characters in a SQL string by replacing backslashes with double backslashes and single quotes with double single quotes.
has_contain_words
Checks if any of the given words are present in the source string as whole words.
is_contain_word
Checks if a given word is present in the source string as a whole word, ignoring case.
replace_multiple_placeholders
Replaces multiple placeholders in a string using a map of placeholder-value pairs.
replace_placeholder
Replaces placeholders in a string with specified replacement values.
to_array
Converts a comma-separated string into a vector of strings.