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

Function getWrappedCommand

src/persisters/common/database/common.ts:53–62  ·  view source on GitHub ↗
(
  executeCommand: DatabaseExecuteCommand,
  onSqlCommand: ((sql: string, params?: any[]) => void) | undefined,
)

Source from the content-addressed store, hash-verified

51export const TABLE_NAME_PLACEHOLDER = '$tableName';
52
53export const getWrappedCommand = (
54 executeCommand: DatabaseExecuteCommand,
55 onSqlCommand: ((sql: string, params?: any[]) => void) | undefined,
56): DatabaseExecuteCommand =>
57 onSqlCommand
58 ? async (sql, params) => {
59 onSqlCommand(sql, params);
60 return await executeCommand(sql, params);
61 }
62 : executeCommand;
63
64export const escapeId = (str: string) =>
65 arrayJoin(

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…