UNPKG

pg-boss

Version:

Queueing jobs in Postgres from Node.js like a boss

10 lines (9 loc) 274 B
export function fromPrisma(tx) { return { async executeSql(text, values) { const rows = await tx.$queryRawUnsafe(text, ...(values ?? [])); // v8 ignore next return { rows: Array.isArray(rows) ? rows : [] }; } }; }