Function: safeOrderByColumn()
safeOrderByColumn(
column,allowedColumns,fallback):string
Defined in: Data/Core/SafeQuery.ts:20
Validate and return a safe ORDER BY column name. Throws if the column is not in the allowed set.
Parameters
column
string | undefined
The requested column name
allowedColumns
ReadonlySet<string>
Set of column names that are safe to use
fallback
string
Default column if column is undefined
Returns
string