in backend/src/tools/AGEParser.js [38:54]
async function setAGETypes(client, types) {
await client.query(`
CREATE EXTENSION IF NOT EXISTS age;
LOAD 'age';
SET search_path = ag_catalog, "$user", public;
`)
const oidResults = await client.query(`
select typelem
from pg_type
where typname = '_agtype';`);
if (oidResults.rows.length < 1)
throw new Error();
types.setTypeParser(oidResults.rows[0].typelem, AGTypeParse)
}