UNPKG

@fedify/postgres

Version:

PostgreSQL drivers for Fedify

12 lines (8 loc) 326 B
const { Temporal } = require("@js-temporal/polyfill"); //#region src/utils.ts async function driverSerializesJson(sql) { const result = await sql`SELECT ${sql.json("{\"foo\":1}")}::jsonb AS test;`; return result[0].test === "{\"foo\":1}"; } //#endregion exports.driverSerializesJson = driverSerializesJson;