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

Function escapeId

src/persisters/common/database/common.ts:64–68  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

62 : executeCommand;
63
64export const escapeId = (str: string) =>
65 arrayJoin(
66 arrayMap(strSplit(str, DOT), (part) => `"${strReplace(part, /"/g, '""')}"`),
67 DOT,
68 );
69
70export const escapeIds = (...ids: Ids) => escapeId(arrayJoin(ids, '_'));
71

Callers 8

loadTableFunction · 0.90
saveTableFunction · 0.90
defaultUpsertFunction · 0.90
addDataChangedTriggersFunction · 0.90
addPersisterListenerFunction · 0.90
escapeIdsFunction · 0.70
getWhereConditionFunction · 0.70

Calls 4

arrayJoinFunction · 0.90
arrayMapFunction · 0.90
strSplitFunction · 0.90
strReplaceFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…