Skip to main content

Module sql_utils

Module sql_utils 

Source
Expand description

SQL utility functions for federation query building.

Shared utilities for SQL generation across federation modules.

Traits§

JsonTypeStr
Helper trait to get string representation of JSON value type for error messages.

Functions§

escape_sql_string
Escape single quotes in SQL string values to prevent SQL injection.
value_to_sql_literal
Convert a JSON value to a SQL literal representation.
value_to_string
Convert a JSON value to its string representation for use in SQL.