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

Function queryRows

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

Source from the content-addressed store, hash-verified

82 client.execute(args ? { sql, args } : sql);
83
84export const queryRows = async <T>(
85 client: Client,
86 sql: string,
87 args?: InArgs,
88): Promise<readonly T[]> => asRows<T>(await executeSql(client, sql, args));
89
90export const queryFirst = async <T>(
91 client: Client,

Callers 2

readV1SnapshotFunction · 0.90
seedV1ContentFunction · 0.90

Calls 2

asRowsFunction · 0.85
executeSqlFunction · 0.85

Tested by 1

seedV1ContentFunction · 0.72