rawSql

View Source

Summary

Creates a SQL statement from raw text and values.

Signature

function rawSql(text: string, values: unknown[]): SqlStatement;

Example

import { rawSql } from 'remix/data-table'

let statement = rawSql('select * from users where id = ?', [1])

Params

text

SQL text containing placeholders expected by the target adapter.

values

Placeholder values.

Returns

A normalized SQL statement.