Skip to main content

Module builtins

Module builtins 

Source
Expand description

Built-in core scalar functions (§13.1).

Implements 60+ SQLite scalar functions with exact NULL-propagation semantics. The connection-state helpers changes(), total_changes(), and last_insert_rowid() are projected through thread-local connection state. sqlite_offset() remains unwired.

Structs§

AbsFunc
ChangeTrackingState
Connection-scoped change-tracking state projected into builtin execution context.
ChangesFunc
CharFunc
CoalesceFunc
ConcatFunc
ConcatWsFunc
FormatFunc
GlobFunc
HexFunc
IfnullFunc
IifFunc
InstrFunc
LastInsertRowidFunc
LengthFunc
LikeFunc
LikelihoodFunc
LikelyFunc
LowerFunc
LtrimFunc
NullifFunc
OctetLengthFunc
QuoteFunc
RandomFunc
RandomblobFunc
ReplaceFunc
RoundFunc
RtrimFunc
ScalarMaxFunc
ScalarMinFunc
SignFunc
SoundexFunc
SqliteCompileoptionGetFunc
SqliteCompileoptionUsedFunc
SqliteSourceIdFunc
SqliteVersionFunc
SubstrFunc
SubtypeFunc
TotalChangesFunc
TrimFunc
TypeofFunc
UnhexFunc
UnicodeFunc
UnistrFunc
UnistrQuoteFunc
UnlikelyFunc
UpperFunc
ZeroblobFunc

Functions§

case_sensitive_like_active
Read the active case_sensitive_like flag for LIKE evaluation on this thread.
get_change_tracking_state
Read the current builtin change-tracking context for this thread.
get_last_changes
Get the current last changes count.
get_last_insert_rowid
Get the current last insert rowid.
get_total_changes
Get the cumulative total changes since the connection was opened.
register_builtins
Register all core built-in scalar functions into the given registry.
reset_statement_now
Reset the captured statement 'now' (called by the Connection at each statement start so the next statement re-reads the wall clock).
reset_total_changes
Reset the cumulative total changes counter (called on new connection open).
set_case_sensitive_like
Set the active case_sensitive_like flag for LIKE evaluation on this thread (called by the Connection before executing a statement).
set_change_tracking_state
Replace the full builtin change-tracking context.
set_last_changes
Set the last changes count (called by Connection after DML).
set_last_insert_rowid
Set the last insert rowid (called by Connection after INSERT).
set_statement_now
Record the statement 'now' captured on its first use this statement.
set_statement_text_encoding
Set the active database TEXT encoding for the statement on this thread.
sqlite_compile_options
Return the canonical compile-option surface exposed by FrankenSQLite.
sqlite_compileoption_used
Report whether the given SQLite-style compile-option query matches the current FrankenSQLite build surface.
statement_now
The 'now' value already captured for the current statement, if any.
statement_text_encoding
Read the active database TEXT encoding for the current statement’s thread. Defaults to TextEncoding::Utf8 when nothing has been projected.