@ -234,9 +234,6 @@ Spatial Navigation
also jump to the start of any log partitions that have
also jump to the start of any log partitions that have
been created with the 'partition-name' command.
been created with the 'partition-name' command.
y/Y Move forward/backward through the log view based on the
"log_line" column in the SQL result view.
s/S Move to the next/previous "slow down" in the log message
s/S Move to the next/previous "slow down" in the log message
rate. A slow down is detected by measuring how quickly
rate. A slow down is detected by measuring how quickly
the message rate has changed over the previous several
the message rate has changed over the previous several
@ -1236,11 +1233,11 @@ Parameter
X The unicode code point values
X The unicode code point values
See Also
See Also
charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
unicode(), upper(), xpath()
trim(), unicode(), upper(), xpath()
Example
Example
#1 To get a string with the code points 0x48 and 0x49:
#1 To get a string with the code points 0x48 and 0x49:
;SELECT char(0x48, 0x49)
;SELECT char(0x48, 0x49)
@ -1257,11 +1254,11 @@ Parameters
start The one-based index within the haystack to start the search
start The one-based index within the haystack to start the search
See Also
See Also
char(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
unicode(), upper(), xpath()
trim(), unicode(), upper(), xpath()
Examples
Examples
#1 To search for the string 'abc' within 'abcabc' and starting at position 2:
#1 To search for the string 'abc' within 'abcabc' and starting at position 2:
;SELECT charindex('abc', 'abcabc', 2)
;SELECT charindex('abc', 'abcabc', 2)
@ -1408,11 +1405,11 @@ Parameters
suffix The suffix to check in the string
suffix The suffix to check in the string
See Also
See Also
char(), charindex(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
unicode(), upper(), xpath()
trim(), unicode(), upper(), xpath()
Examples
Examples
#1 To test if the string 'notbad.jpg' ends with '.jpg':
#1 To test if the string 'notbad.jpg' ends with '.jpg':
;SELECT endswith('notbad.jpg', '.jpg')
;SELECT endswith('notbad.jpg', '.jpg')
@ -1443,11 +1440,11 @@ Parameter
str The string to parse
str The string to parse
See Also
See Also
char(), charindex(), endswith(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
unicode(), upper(), xpath()
trim(), unicode(), upper(), xpath()
Examples
Examples
#1 To extract key/value pairs from a string:
#1 To extract key/value pairs from a string:
;SELECT extract('foo=1 bar=2 name="Rolo Tomassi"')
;SELECT extract('foo=1 bar=2 name="Rolo Tomassi"')
@ -1550,11 +1547,11 @@ Parameters
sep The separator to place between the values.
sep The separator to place between the values.
See Also
See Also
char(), charindex(), endswith(), extract(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
unicode(), upper(), xpath()
trim(), unicode(), upper(), xpath()
Examples
Examples
#1 To concatenate the values of the column 'ex_procname' from the table 'lnav_example_log'
#1 To concatenate the values of the column 'ex_procname' from the table 'lnav_example_log'
:
:
@ -1578,11 +1575,11 @@ Parameter
str The string to hash
str The string to hash
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(),
char(), charindex(), endswith(), extract(), group_concat(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
unicode(), upper(), xpath()
trim(), unicode(), upper(), xpath()
Example
Example
#1 To produce a hash of all of the values of 'column1':
#1 To produce a hash of all of the values of 'column1':
;SELECT group_spooky_hash(column1) FROM (VALUES ('abc'), ('123'))
;SELECT group_spooky_hash(column1) FROM (VALUES ('abc'), ('123'))
@ -1608,8 +1605,8 @@ Parameter
value The file size to format
value The file size to format
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
instr(), leftstr(), length(), lower(), ltrim(), padc(), padl(), padr(),
instr(), leftstr(), length(), logfmt2json(), lo wer(), ltrim(), padc(), padl(),
printf(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
padr(), p rintf(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
xpath()
xpath()
@ -1641,11 +1638,11 @@ Parameters
needle The string to look for in the haystack
needle The string to look for in the haystack
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), leftstr(), length(), lower(), ltrim(), padc(), padl(),
humanize_file_size(), leftstr(), length(), logfmt2json(), lo wer(), ltrim(),
padr(), printf(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
padc(), padl(), pad r(), printf(), proper(), regexp_capture(), regexp_match(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_replace(), re place(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Example
Example
#1 To test get the position of 'b' in the string 'abc':
#1 To test get the position of 'b' in the string 'abc':
;SELECT instr('abc', 'b')
;SELECT instr('abc', 'b')
@ -1847,11 +1844,11 @@ Parameters
N The number of characters from the left side of the string to return.
N The number of characters from the left side of the string to return.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), length(), lower(), ltrim(), padc(), padl(),
humanize_file_size(), instr(), length(), logfmt2json(), lo wer(), ltrim(),
padr(), printf(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
padc(), padl(), pad r(), printf(), proper(), regexp_capture(), regexp_match(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_replace(), re place(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Examples
Examples
#1 To get the first character of the string 'abc':
#1 To get the first character of the string 'abc':
;SELECT leftstr('abc', 1)
;SELECT leftstr('abc', 1)
@ -1869,11 +1866,11 @@ Parameter
str The string to determine the length of
str The string to determine the length of
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), lower(), ltrim(), padc(), padl(),
humanize_file_size(), instr(), leftstr(), logfmt2json(), lo wer(), ltrim(),
padr(), printf(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
padc(), padl(), pad r(), printf(), proper(), regexp_capture(), regexp_match(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_replace(), re place(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Example
Example
#1 To get the length of the string 'abc':
#1 To get the length of the string 'abc':
;SELECT length('abc')
;SELECT length('abc')
@ -1923,7 +1920,7 @@ Synopsis
Synopsis
Synopsis
load_extension(path, [entry-point]) -- Loads SQLite extensions out of the
load_extension(path, [entry-point]) -- Loads SQLite extensions out of the
given shared library file using the given entry point.
given shared library file using the given entry point.
Parameters
Parameters
path The path to the shared library containing the extension.
path The path to the shared library containing the extension.
@ -1967,6 +1964,23 @@ Synopsis
log_top_line() -- Return the line number at the top of the log view.
log_top_line() -- Return the line number at the top of the log view.
Synopsis
logfmt2json(str) -- Convert a logfmt-encoded string into JSON
Parameter
str The logfmt message to parse
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc(),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
unicode(), upper(), xpath()
Example
#1 To extract key/value pairs from a log message:
;SELECT logfmt2json('foo=1 bar=2 name="Rolo Tomassi"')
Synopsis
Synopsis
lower(str) -- Returns a copy of the given string with all ASCII characters
lower(str) -- Returns a copy of the given string with all ASCII characters
converted to lower case.
converted to lower case.
@ -1974,11 +1988,11 @@ Parameter
str The string to convert.
str The string to convert.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), ltrim(), padc(), padl (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), ltrim (),
padr(), printf(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
padc(), padl(), pad r(), printf(), proper(), regexp_capture(), regexp_match(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_replace(), re place(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Example
Example
#1 To lowercase the string 'AbC':
#1 To lowercase the string 'AbC':
;SELECT lower('AbC')
;SELECT lower('AbC')
@ -1994,11 +2008,11 @@ Parameters
chars The characters to trim. Defaults to spaces.
chars The characters to trim. Defaults to spaces.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), padc(), padl (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padr(), printf(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
padc(), padl(), pad r(), printf(), proper(), regexp_capture(), regexp_match(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_replace(), re place(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Examples
Examples
#1 To trim the leading whitespace from the string ' abc':
#1 To trim the leading whitespace from the string ' abc':
;SELECT ltrim(' abc')
;SELECT ltrim(' abc')
@ -2093,11 +2107,11 @@ Parameters
len The minimum desired length of the output string
len The minimum desired length of the output string
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padl (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padr(), printf(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
ltrim(), padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_replace(), re place(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Examples
Examples
#1 To pad the string 'abc' to a length of six characters:
#1 To pad the string 'abc' to a length of six characters:
;SELECT padc('abc', 6) || 'def'
;SELECT padc('abc', 6) || 'def'
@ -2116,11 +2130,11 @@ Parameters
len The minimum desired length of the output string
len The minimum desired length of the output string
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padr(), printf(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
ltrim(), padc(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_replace(), re place(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Examples
Examples
#1 To pad the string 'abc' to a length of six characters:
#1 To pad the string 'abc' to a length of six characters:
;SELECT padl('abc', 6)
;SELECT padl('abc', 6)
@ -2139,11 +2153,11 @@ Parameters
len The minimum desired length of the output string
len The minimum desired length of the output string
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), printf(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
ltrim(), padc(), padl(), printf(), proper(), regexp_capture(), regexp_match(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_replace(), re place(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Examples
Examples
#1 To pad the string 'abc' to a length of six characters:
#1 To pad the string 'abc' to a length of six characters:
;SELECT padr('abc', 6) || 'def'
;SELECT padr('abc', 6) || 'def'
@ -2196,11 +2210,11 @@ Parameters
X The argument to substitute at a given position in the format.
X The argument to substitute at a given position in the format.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), proper(), regexp_capture(), regexp_match(), regexp_replace(),
ltrim(), padc(), padl(), padr(), proper(), regexp_capture(), regexp_match(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_replace(), re place(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Examples
Examples
#1 To substitute 'World' into the string 'Hello, %s!':
#1 To substitute 'World' into the string 'Hello, %s!':
;SELECT printf('Hello, %s!', 'World')
;SELECT printf('Hello, %s!', 'World')
@ -2221,11 +2235,11 @@ Parameter
str The string to capitalize.
str The string to capitalize.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), regexp_capture(), regexp_match(), regexp_replace(),
ltrim(), padc(), padl(), padr(), printf(), regexp_capture(), regexp_match(),
replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_replace(), re place(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Example
Example
#1 To capitalize the words in the string 'hello, world!':
#1 To capitalize the words in the string 'hello, world!':
;SELECT proper('hello, world!')
;SELECT proper('hello, world!')
@ -2326,10 +2340,11 @@ Results
content The captured value from the string.
content The captured value from the string.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc(),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower(),
padl(), padr(), printf(), proper(), regexp_match(), regexp_replace(), replace(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_match(),
replicate(), reverse(), rightstr(), rtrim(), sparkline(), spooky_hash(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
startswith(), strfilter(), substr(), trim(), unicode(), upper(), xpath()
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
unicode(), upper(), xpath()
Example
Example
#1 To extract the key/value pairs 'a'/1 and 'b'/2 from the string 'a=1; b=2':
#1 To extract the key/value pairs 'a'/1 and 'b'/2 from the string 'a=1; b=2':
;SELECT * FROM regexp_capture('a=1; b=2', '(\w+)=(\d+)')
;SELECT * FROM regexp_capture('a=1; b=2', '(\w+)=(\d+)')
@ -2344,11 +2359,11 @@ Parameters
str The string to test against the regular expression
str The string to test against the regular expression
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_replace(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_replace(), regexp_replace(), re place(), replicate(), reverse(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rightstr(), rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(),
unicode(), upper(), xpath()
substr(), trim(), unicode(), upper(), xpath()
Examples
Examples
#1 To capture the digits from the string '123':
#1 To capture the digits from the string '123':
;SELECT regexp_match('(\d+)', '123')
;SELECT regexp_match('(\d+)', '123')
@ -2375,11 +2390,11 @@ Parameters
backslash followed by the number of the group, starting with 1.
backslash followed by the number of the group, starting with 1.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_match(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_match(), re place(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
unicode(), upper(), xpath()
trim(), unicode(), upper(), xpath()
Examples
Examples
#1 To replace the word at the start of the string 'Hello, World!' with 'Goodbye':
#1 To replace the word at the start of the string 'Hello, World!' with 'Goodbye':
;SELECT regexp_replace('Hello, World!', '^(\w+)', 'Goodbye')
;SELECT regexp_replace('Hello, World!', '^(\w+)', 'Goodbye')
@ -2400,11 +2415,11 @@ Parameters
replacement The string to replace any occurrences of the old string with.
replacement The string to replace any occurrences of the old string with.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replicate(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_match(), regexp_ replace(), replicate(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Examples
Examples
#1 To replace the string 'x' with 'z' in 'abc':
#1 To replace the string 'x' with 'z' in 'abc':
;SELECT replace('abc', 'x', 'z')
;SELECT replace('abc', 'x', 'z')
@ -2422,11 +2437,11 @@ Parameters
N The number of times to replicate the string.
N The number of times to replicate the string.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), reverse(), rightstr(), rtrim(), sparkline(),
regexp_match(), regexp_ replace(), replace(), reverse(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Example
Example
#1 To repeat the string 'abc' three times:
#1 To repeat the string 'abc' three times:
;SELECT replicate('abc', 3)
;SELECT replicate('abc', 3)
@ -2439,11 +2454,11 @@ Parameter
str The string to reverse.
str The string to reverse.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), rightstr(), rtrim(), sparkline(),
regexp_match(), regexp_ replace(), replace(), replicate(), rightstr(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Example
Example
#1 To reverse the string 'abc':
#1 To reverse the string 'abc':
;SELECT reverse('abc')
;SELECT reverse('abc')
@ -2458,11 +2473,11 @@ Parameters
N The number of characters from the right side of the string to return.
N The number of characters from the right side of the string to return.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rtrim(), sparkline(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rtrim(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Examples
Examples
#1 To get the last character of the string 'abc':
#1 To get the last character of the string 'abc':
;SELECT rightstr('abc', 1)
;SELECT rightstr('abc', 1)
@ -2519,11 +2534,11 @@ Parameters
chars The characters to trim. Defaults to spaces.
chars The characters to trim. Defaults to spaces.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), sparkline(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
sparkline(), sp ooky_hash(), startswith(), strfilter(), substr(), trim(),
xpath()
unicode(), upper(), xpath()
Examples
Examples
#1 To trim the whitespace from the end of the string 'abc ':
#1 To trim the whitespace from the end of the string 'abc ':
;SELECT rtrim('abc ')
;SELECT rtrim('abc ')
@ -2568,11 +2583,11 @@ Parameters
inputs.
inputs.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
rtrim(), spooky_hash(), startswith(), strfilter(), substr(), trim(), unicode(),
xpath()
upper(), xpath()
Examples
Examples
#1 To get the unicode block element for the value 32 in the range of 0-128:
#1 To get the unicode block element for the value 32 in the range of 0-128:
;SELECT sparkline(32, 128)
;SELECT sparkline(32, 128)
@ -2589,11 +2604,11 @@ Parameter
str The string to hash
str The string to hash
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), startswith(), strfilter(), substr(), trim(), unicode(), upper(),
rtrim(), sparkline(), startswith(), strfilter(), substr(), trim(), unicode(),
xpath()
upper(), xpath()
Examples
Examples
#1 To produce a hash for the string 'Hello, World!':
#1 To produce a hash for the string 'Hello, World!':
;SELECT spooky_hash('Hello, World!')
;SELECT spooky_hash('Hello, World!')
@ -2662,11 +2677,11 @@ Parameters
prefix The prefix to check in the string
prefix The prefix to check in the string
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), strfilter(), substr(), trim(), unicode(), upper(),
rtrim(), sparkline(), spooky_hash(), strfilter(), substr(), trim(), unicode(),
xpath()
upper(), xpath()
Examples
Examples
#1 To test if the string 'foobar' starts with 'foo':
#1 To test if the string 'foobar' starts with 'foo':
;SELECT startswith('foobar', 'foo')
;SELECT startswith('foobar', 'foo')
@ -2685,11 +2700,11 @@ Parameters
include The characters to include in the result
include The characters to include in the result
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), substr(), trim(), unicode(), upper(),
rtrim(), sparkline(), spooky_hash(), startswith(), substr(), trim(), unicode(),
xpath()
upper(), xpath()
Example
Example
#1 To get the 'b', 'c', and 'd' characters from the string 'abcabc':
#1 To get the 'b', 'c', and 'd' characters from the string 'abcabc':
;SELECT strfilter('abcabc', 'bcd')
;SELECT strfilter('abcabc', 'bcd')
@ -2734,11 +2749,11 @@ Parameters
the characters before the start are returned.
the characters before the start are returned.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), trim(), unicode(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), trim(),
upper(), xpath()
unicode(), u pper(), xpath()
Examples
Examples
#1 To get the substring starting at the second character until the end of the string 'abc'
#1 To get the substring starting at the second character until the end of the string 'abc'
:
:
@ -2867,11 +2882,11 @@ Parameters
chars The characters to trim. Defaults to spaces.
chars The characters to trim. Defaults to spaces.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), unicode(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
upper(), xpath()
unicode(), u pper(), xpath()
Examples
Examples
#1 To trim whitespace from the start and end of the string ' abc ':
#1 To trim whitespace from the start and end of the string ' abc ':
;SELECT trim(' abc ')
;SELECT trim(' abc ')
@ -2905,11 +2920,11 @@ Parameter
X The string to examine.
X The string to examine.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
upper(), xpath()
trim(), upper(), xpath()
Example
Example
#1 To get the unicode code point for the first character of 'abc':
#1 To get the unicode code point for the first character of 'abc':
;SELECT unicode('abc')
;SELECT unicode('abc')
@ -2929,11 +2944,11 @@ Parameter
str The string to convert.
str The string to convert.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
unicode(), xpath()
trim(), unicode(), xpath()
Example
Example
#1 To uppercase the string 'aBc':
#1 To uppercase the string 'aBc':
;SELECT upper('aBc')
;SELECT upper('aBc')
@ -2953,11 +2968,11 @@ Results
node_text The node's text value.
node_text The node's text value.
See Also
See Also
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
char(), charindex(), endswith(), extract(), group_concat(), group_spooky_hash(),
humanize_file_size(), instr(), leftstr(), length(), lower(), ltrim(), padc (),
humanize_file_size(), instr(), leftstr(), length(), logfmt2json(), lower (),
padl(), padr(), printf(), proper(), regexp_capture(), regexp_match(),
ltrim(), padc(), padl(), padr(), printf(), proper(), regexp_capture(),
regexp_replace(), replace(), replicate(), reverse(), rightstr(), rtrim(),
regexp_match(), regexp_ replace(), replace(), replicate(), reverse(), rightstr(),
sparkline(), spooky_hash(), startswith(), strfilter(), substr(), trim(),
rtrim(), sparkline(), spooky_hash(), startswith(), strfilter(), substr(),
unicode(), upper()
trim(), unicode(), upper()
Examples
Examples
#1 To select the XML nodes on the path '/abc/def':
#1 To select the XML nodes on the path '/abc/def':
;SELECT * FROM xpath('/abc/def', '<abc><def a="b">Hello</def><def>Bye</def></abc>')
;SELECT * FROM xpath('/abc/def', '<abc><def a="b">Hello</def><def>Bye</def></abc>')