UNPKG

pg-boss

Version:

Queueing jobs in Postgres from Node.js like a boss

14 lines (13 loc) 382 B
export function fromKysely(trx) { return { async executeSql(text, values) { const result = await trx.executeQuery({ sql: text, parameters: values ?? [], query: { kind: 'RawNode' }, queryId: { queryId: 'pgboss' } }); return { rows: [...result.rows] }; } }; }