raw() function

Text spliced in as written, binding nothing.

Signature:

export declare function raw(text: string): SqlFragment;

Parameters

Parameter

Type

Description

text

string

The SQL, spliced verbatim.

Returns:

SqlFragment

A fragment binding nothing.

Remarks

**The one way to write SQL from a value, and the only unsafe one.** Every caller must be passing something from a closed set it controls — a column name looked up in a map, a direction that is ASC or DESC — never a string that reached it from outside.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.