sqlite-prepare
Version:
A type-safe SQL query builder for Cloudflare D1
17 lines (16 loc) • 813 B
TypeScript
import { RawSQL, SQLParam } from './types';
/**
* Creates a raw SQL fragment that will be inserted directly into the query without escaping
* @param value - The raw SQL string to insert
* @param params - Optional array of parameters to bind to placeholders in the raw SQL
* @returns An object marking the string as raw SQL with optional parameters
*/
export declare function raw(value: string, params?: SQLParam[]): RawSQL;
/**
* Creates a raw SQL fragment using template literals that will be inserted directly into the query
* @param strings - Template strings array
* @param values - Values to interpolate into the template
* @returns An object marking the string as raw SQL
*/
export declare function raw(strings: TemplateStringsArray, ...values: any[]): RawSQL;
export declare const r: typeof raw;