neuralib.sqlp.func
SQL functions.
covers * https://www.sqlite.org/lang_corefunc.html * https://www.sqlite.org/lang_aggfunc.html * https://www.sqlite.org/lang_mathfunc.html
- neuralib.sqlp.func.abs(x)[source]
https://www.sqlite.org/lang_corefunc.html#abs
- Parameters:
x (N)
- Return type:
N
- neuralib.sqlp.func.changes()[source]
https://www.sqlite.org/lang_corefunc.html#changes
- Return type:
int
- neuralib.sqlp.func.char(*x)[source]
https://www.sqlite.org/lang_corefunc.html#char
- Return type:
str
- neuralib.sqlp.func.coalesce(*x)[source]
https://www.sqlite.org/lang_corefunc.html#coalesce
- Parameters:
x (T)
- Return type:
T | None
- neuralib.sqlp.func.format(fmt, *x)[source]
https://www.sqlite.org/lang_corefunc.html#format
- Parameters:
fmt (LiteralString)
- Return type:
str
- neuralib.sqlp.func.hex(x)[source]
https://www.sqlite.org/lang_corefunc.html#hex
- Parameters:
x (bytes)
- Return type:
str
- neuralib.sqlp.func.ifnull(x, y)[source]
x?:yhttps://www.sqlite.org/lang_corefunc.html#ifnull
- Parameters:
x (T)
y (T)
- Return type:
T
- neuralib.sqlp.func.iif(x, y, z)[source]
x?y:zhttps://www.sqlite.org/lang_corefunc.html#iif
- Parameters:
y (T)
z (T)
- Return type:
T
- neuralib.sqlp.func.instr(x, y)[source]
x.find(y)https://www.sqlite.org/lang_corefunc.html#instr
- Parameters:
x (str)
y (str)
- Return type:
int
- neuralib.sqlp.func.last_insert_rowid()[source]
https://www.sqlite.org/lang_corefunc.html#last_insert_rowid
- Return type:
int
- neuralib.sqlp.func.length(x)[source]
https://www.sqlite.org/lang_corefunc.html#length
- Parameters:
x (str | bytes)
- Return type:
int
- neuralib.sqlp.func.likelihood(x, y)[source]
https://www.sqlite.org/lang_corefunc.html#likelihood
- Parameters:
x (T)
y (float)
- Return type:
T
- neuralib.sqlp.func.likely(x)[source]
https://www.sqlite.org/lang_corefunc.html#likely
- Parameters:
x (T)
- Return type:
T
- neuralib.sqlp.func.lower(x)[source]
https://www.sqlite.org/lang_corefunc.html#lower
- Parameters:
x (str)
- Return type:
str
- neuralib.sqlp.func.ltrim(x, y=None)[source]
https://www.sqlite.org/lang_corefunc.html#ltrim
- Parameters:
x (str)
y (str)
- Return type:
str
- neuralib.sqlp.func.max(x: N) N[source]
- neuralib.sqlp.func.max(x: N, *other: N) N
https://www.sqlite.org/lang_corefunc.html#max https://www.sqlite.org/lang_aggfunc.html#max_agg
- neuralib.sqlp.func.min(x: N) N[source]
- neuralib.sqlp.func.min(x: N, *other: N) N
https://www.sqlite.org/lang_corefunc.html#min https://www.sqlite.org/lang_aggfunc.html#min_agg
- neuralib.sqlp.func.nullif(x, y)[source]
x if x != y else Nonehttps://www.sqlite.org/lang_corefunc.html#nullif
- Parameters:
x (T)
y (T)
- Return type:
T | None
- neuralib.sqlp.func.octet_length(x)[source]
https://www.sqlite.org/lang_corefunc.html#octet_length
- Parameters:
x (str)
- Return type:
int
- neuralib.sqlp.func.printf(fmt, *x)[source]
https://www.sqlite.org/lang_corefunc.html#printf
- Parameters:
fmt (LiteralString)
- Return type:
str
- neuralib.sqlp.func.quote(x)[source]
https://www.sqlite.org/lang_corefunc.html#quote
- Parameters:
x (str)
- Return type:
- neuralib.sqlp.func.random()[source]
https://www.sqlite.org/lang_corefunc.html#random
- Return type:
int
- neuralib.sqlp.func.randomblob(n)[source]
https://www.sqlite.org/lang_corefunc.html#randomblob
- Parameters:
n (int)
- Return type:
bytes
- neuralib.sqlp.func.replace(x, y, z)[source]
https://www.sqlite.org/lang_corefunc.html#replace
- Parameters:
x (str)
y (str)
z (str)
- Return type:
str
- neuralib.sqlp.func.round(x, y=None)[source]
https://www.sqlite.org/lang_corefunc.html#round
- Parameters:
x (float)
y (int)
- Return type:
float
- neuralib.sqlp.func.rtrim(x, y=None)[source]
https://www.sqlite.org/lang_corefunc.html#rtrim
- Parameters:
x (str)
y (str)
- Return type:
str
- neuralib.sqlp.func.sqlite_source_id()[source]
https://www.sqlite.org/lang_corefunc.html#sqlite_source_id
- Return type:
str
- neuralib.sqlp.func.sqlite_version()[source]
https://www.sqlite.org/lang_corefunc.html#sqlite_version
- Return type:
str
- neuralib.sqlp.func.substr(x, y, z=None)[source]
https://www.sqlite.org/lang_corefunc.html#substr
- Parameters:
x (str)
y (int)
z (int)
- Return type:
str
- neuralib.sqlp.func.total_changes()[source]
https://www.sqlite.org/lang_corefunc.html#total_changes
- Return type:
int
- neuralib.sqlp.func.trim(x, y=None)[source]
https://www.sqlite.org/lang_corefunc.html#trim
- Parameters:
x (str)
y (str)
- Return type:
str
- neuralib.sqlp.func.typeof(x)[source]
https://www.sqlite.org/lang_corefunc.html#typeof
- Return type:
str
- neuralib.sqlp.func.unhex(x, y=None)[source]
https://www.sqlite.org/lang_corefunc.html#unhex
- Parameters:
x (str)
- Return type:
bytes
- neuralib.sqlp.func.unicode(x)[source]
https://www.sqlite.org/lang_corefunc.html#unicode
- Parameters:
x (str)
- Return type:
int
- neuralib.sqlp.func.unlikely(x)[source]
https://www.sqlite.org/lang_corefunc.html#unlikely
- Parameters:
x (T)
- Return type:
T
- neuralib.sqlp.func.upper(x)[source]
https://www.sqlite.org/lang_corefunc.html#upper
- Parameters:
x (str)
- Return type:
str
- neuralib.sqlp.func.zeroblob(n)[source]
https://www.sqlite.org/lang_corefunc.html#zeroblob
- Parameters:
n (int)
- Return type:
bytes
- neuralib.sqlp.func.avg(x)[source]
https://www.sqlite.org/lang_aggfunc.html#avg
- Return type:
float
- neuralib.sqlp.func.count(x=None)[source]
https://www.sqlite.org/lang_aggfunc.html#count
- Return type:
int
- neuralib.sqlp.func.group_concat(x, y=None)[source]
https://www.sqlite.org/lang_aggfunc.html#group_concat
- Return type:
str
- neuralib.sqlp.func.sum(x)[source]
https://www.sqlite.org/lang_aggfunc.html#sumunc
- Return type:
float
- neuralib.sqlp.func.acos(x)[source]
https://www.sqlite.org/lang_mathfunc.html#acos
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.acosh(x)[source]
https://www.sqlite.org/lang_mathfunc.html#acosh
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.asin(x)[source]
https://www.sqlite.org/lang_mathfunc.html#asin
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.asinh(x)[source]
https://www.sqlite.org/lang_mathfunc.html#asinh
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.atan(x)[source]
https://www.sqlite.org/lang_mathfunc.html#atan
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.atan2(y, x)[source]
https://www.sqlite.org/lang_mathfunc.html#atan2
- Parameters:
y (float)
x (float)
- Return type:
float
- neuralib.sqlp.func.atanh(x)[source]
https://www.sqlite.org/lang_mathfunc.html#atanh
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.ceil(x)[source]
https://www.sqlite.org/lang_mathfunc.html#ceil
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.cos(x)[source]
https://www.sqlite.org/lang_mathfunc.html#cos
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.cosh(x)[source]
https://www.sqlite.org/lang_mathfunc.html#cosh
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.degrees(x)[source]
https://www.sqlite.org/lang_mathfunc.html#degrees
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.exp(x)[source]
https://www.sqlite.org/lang_mathfunc.html#exp
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.floor(x)[source]
https://www.sqlite.org/lang_mathfunc.html#floor
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.ln(x)[source]
https://www.sqlite.org/lang_mathfunc.html#ln
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.log(b, x)[source]
https://www.sqlite.org/lang_mathfunc.html#log
- Parameters:
b (float)
x (float)
- Return type:
float
- neuralib.sqlp.func.log2(x)[source]
https://www.sqlite.org/lang_mathfunc.html#log2
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.log10(x)[source]
https://www.sqlite.org/lang_mathfunc.html#log
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.mod(x, y)[source]
https://www.sqlite.org/lang_mathfunc.html#mod
- Parameters:
x (float)
y (float)
- Return type:
float
- neuralib.sqlp.func.pi()[source]
https://www.sqlite.org/lang_mathfunc.html#pi
- Return type:
float
- neuralib.sqlp.func.pow(x, y)[source]
https://www.sqlite.org/lang_mathfunc.html#pow
- Parameters:
x (float)
y (float)
- Return type:
float
- neuralib.sqlp.func.radians(x)[source]
https://www.sqlite.org/lang_mathfunc.html#radians
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.sin(x)[source]
https://www.sqlite.org/lang_mathfunc.html#sin
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.sinh(x)[source]
https://www.sqlite.org/lang_mathfunc.html#sinh
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.sqrt(x)[source]
https://www.sqlite.org/lang_mathfunc.html#sqrt
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.tan(x)[source]
https://www.sqlite.org/lang_mathfunc.html#tan
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.tanh(x)[source]
https://www.sqlite.org/lang_mathfunc.html#tanh
- Parameters:
x (float)
- Return type:
float
- neuralib.sqlp.func.trunc(x)[source]
https://www.sqlite.org/lang_mathfunc.html#trunc
- Parameters:
x (float)
- Return type:
float