const hstore = require('pg-hstore')({ sanitize: true }); type HstoreValue = boolean | number | string; export type HstoreRecord = Record; export function stringify(data: Record): string { return hstore.stringify(data); } export function parse(value: string): Record { return hstore.parse(value); }