prorm API Reference
    Preparing search index...

    Interface LiteralExpression

    Represents a literal SQL expression

    interface LiteralExpression {
        __type: "literal";
        sql: string;
        bindings?: unknown[];
    }
    Index
    __type: "literal"
    sql: string
    bindings?: unknown[]

    Values substituted into the ? placeholders in sql.

    Without this the only escape hatch for an expression the typed API can't build was string concatenation, which is an injection surface precisely where user input is most likely to appear. Prefer:

    literalExpr('price * ? + ?', [rate, fee])

    over building the string yourself. Values are escaped by the dialect.