Skip to main content

JSON_SUBTYPE

Constant JSON_SUBTYPE 

Source
pub const JSON_SUBTYPE: u32 = 74;
Expand description

A scalar (row-level) SQL function.

Scalar functions are invoked once per row and return a single value. They are stored in the FunctionRegistry as Arc<dyn ScalarFunction>.

§Error Handling

  • Return FrankenError::FunctionError for domain errors (e.g. abs(i64::MIN)).
  • Return FrankenError::TooBig if the result exceeds SQLITE_MAX_LENGTH. SQLite’s JSON subtype tag ('J' = 74), attached to TEXT/BLOB values produced by JSON functions so downstream JSON constructors embed them as parsed JSON rather than quoting them as ordinary strings.