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

Function asRows

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

Source from the content-addressed store, hash-verified

75};
76
77const asRows = <T>(result: ResultSet): readonly T[] =>
78 // oxlint-disable-next-line executor/no-double-cast -- boundary: SQLite result columns are the schema contract for T; libSQL rows are narrowed once here
79 result.rows as unknown as readonly T[];
80
81export const executeSql = async (client: Client, sql: string, args?: InArgs): Promise<ResultSet> =>
82 client.execute(args ? { sql, args } : sql);

Callers 1

queryRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected