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
- Change
Tracking State - Connection-scoped change-tracking state projected into builtin execution context.
- Changes
Func - Char
Func - Coalesce
Func - Concat
Func - Concat
WsFunc - Format
Func - Glob
Func - HexFunc
- Ifnull
Func - IifFunc
- Instr
Func - Last
Insert Rowid Func - Length
Func - Like
Func - Likelihood
Func - Likely
Func - Lower
Func - Ltrim
Func - Nullif
Func - Octet
Length Func - Quote
Func - Random
Func - Randomblob
Func - Replace
Func - Round
Func - Rtrim
Func - Scalar
MaxFunc - Scalar
MinFunc - Sign
Func - Soundex
Func - Sqlite
Compileoption GetFunc - Sqlite
Compileoption Used Func - Sqlite
Source IdFunc - Sqlite
Version Func - Substr
Func - Subtype
Func - Total
Changes Func - Trim
Func - Typeof
Func - Unhex
Func - Unicode
Func - Unistr
Func - Unistr
Quote Func - Unlikely
Func - Upper
Func - Zeroblob
Func
Functions§
- case_
sensitive_ like_ active - Read the active
case_sensitive_likeflag 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_likeflag 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::Utf8when nothing has been projected.