MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getPlaceholders

Function getPlaceholders

src/persisters/common/database/common.ts:75–79  ·  view source on GitHub ↗
(array: any[], offset = [1])

Source from the content-addressed store, hash-verified

73 arrayJoin(arrayMap(columnNames, escapeId), COMMA);
74
75export const getPlaceholders = (array: any[], offset = [1]) =>
76 arrayJoin(
77 arrayMap(array, () => '$' + offset[0]++),
78 COMMA,
79 );
80
81export const getWhereCondition = (
82 tableName: string,

Callers 5

saveTableFunction · 0.90
defaultUpsertFunction · 0.90

Calls 2

arrayJoinFunction · 0.90
arrayMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…