Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/tstl/benchmark/internal/StringUtil.ts>StringUtil.substituteSQL

TypeScript-STL (Standard Template Library, migrated from C++)
Latest
method StringUtil.substituteSQL
import { StringUtil } from "https://deno.land/x/tstl@v3.0.0/benchmark/internal/StringUtil.ts";

Substitute {n} tokens within the specified SQL-string.

Parameters

format: string

The string to make substitutions in. This string can contain special tokens of the form {n}, where n is a zero based index, that will be replaced with the additional parameters found at that index if specified.

...args: any[]

Additional parameters that can be substituted in the format parameter at each {n} location, where n is an integer (zero based) index value into the array of values specified.

Returns

string

New SQL-string with all of the {n} tokens replaced with the respective arguments specified.