purescript-pg/test/Test.Data.Postgres.js

5 lines
219 B
JavaScript

/** @type {(_: Buffer) => () => bigint} */
export const readBigInt64BE = buf => () => buf.readBigInt64BE(0)
export const dbg = a => () => typeof a === 'string' ? console.log(Buffer.from(a).toString('hex')) : undefined