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

Function queryRows

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

Source from the content-addressed store, hash-verified

44 client.execute(args ? { sql, args } : sql);
45
46export const queryRows = async <T>(
47 client: Client,
48 sql: string,
49 args?: InArgs,
50): Promise<readonly T[]> => asRows<T>(await executeSql(client, sql, args));
51
52export const queryFirst = async <T>(
53 client: Client,

Callers 2

readV1SnapshotFunction · 0.90
seedV1ContentFunction · 0.90

Calls 2

asRowsFunction · 0.85
executeSqlFunction · 0.85

Tested by 1

seedV1ContentFunction · 0.72