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

Function asRows

apps/local/src/db/libsql.ts:39–41  ·  view source on GitHub ↗
(result: ResultSet)

Source from the content-addressed store, hash-verified

37};
38
39const asRows = <T>(result: ResultSet): readonly T[] =>
40 // oxlint-disable-next-line executor/no-double-cast -- boundary: SQLite result columns are the schema contract for T; libSQL rows are narrowed once here
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);

Callers 1

queryRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected