SQLFragmentclass

new SQLFragment(strings: ImmutableArray<string>, values: ImmutableArray<unknown>)
ParamType
stringsImmutableArray<string>
Immutable array: an array that cannot be changed. required
valuesImmutableArray<unknown>
Immutable array: an array that cannot be changed. required
Return
SQLFragment
SQL fragment made from template strings plus embedded expressions, ready to be composed into a query.
PropertyType
.stringsImmutableArray<string>
Immutable array: an array that cannot be changed. required readonly
.valuesImmutableArray<unknown>
Immutable array: an array that cannot be changed. required readonly

SQL fragment made from template strings plus embedded expressions, ready to be composed into a query.

  • Flattens eagerly: SQLFragment values are spliced inline at construction, so values only ever contains bindable parameters (or driver-specific identifier tokens) — never other fragments.
  • Concrete providers can therefore pass strings / values straight to their driver, and detect fragments with a plain instanceof check.