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

Function queryFirst

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

Source from the content-addressed store, hash-verified

50): Promise<readonly T[]> => asRows<T>(await executeSql(client, sql, args));
51
52export const queryFirst = async <T>(
53 client: Client,
54 sql: string,
55 args?: InArgs,
56): Promise<T | null> => (await queryRows<T>(client, sql, args))[0] ?? null;

Callers 2

tableExistsFunction · 0.90
hasV1GateStampFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected