purescript-pg/src/Data.Postgres.Result.js
2024-03-30 19:50:02 -05:00

6 lines
204 B
JavaScript

/** @type {(_: import('pg').QueryResult) => Array<unknown>} */
export const rows = r => r.rows
/** @type {(_: import('pg').QueryResult) => number | null} */
export const __rowsAffected = r => r.rowCount