UNPKG

@fedify/postgres

Version:

PostgreSQL drivers for Fedify

11 lines (8 loc) 300 B
import { Temporal } from "@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 export { driverSerializesJson };