TinyJoin logoTinyJoin

sql

Essential

The sql method is a parameterizing tagged-template form of query.

sql<RowType>(
  strings: TemplateStringsArray,
  params: JsonValue[],
): Promise<Results<RowType>>
TypeDescription
stringsTemplateStringsArray
paramsJsonValue[]
returnsPromise<Results<RowType>>

Interpolated values become $n parameters. It does not interpolate raw identifiers or SQL fragments.

Since

v0.0.5