MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / executeSql

Function executeSql

apps/local/src/db/libsql.ts:43–44  ·  view source on GitHub ↗
(client: Client, sql: string, args?: InArgs)

Source from the content-addressed store, hash-verified

41 result.rows as unknown as readonly T[];
42
43export const executeSql = async (client: Client, sql: string, args?: InArgs): Promise<ResultSet> =>
44 client.execute(args ? { sql, args } : sql);
45
46export const queryRows = async <T>(
47 client: Client,

Callers 8

seedV1FinalFunction · 0.90
insertPlanFunction · 0.90
seedV1ContentFunction · 0.90
seedMinimalV1DbFunction · 0.90
seedV1DbFunction · 0.90
queryRowsFunction · 0.85

Calls 1

executeMethod · 0.65

Tested by 4

seedV1FinalFunction · 0.72
seedV1ContentFunction · 0.72
seedMinimalV1DbFunction · 0.72
seedV1DbFunction · 0.72