Change how we handle escapeIdentifier suppression

This commit is contained in:
Guangcong Luo 2023-11-30 14:46:28 -06:00
parent 21bce2d14f
commit 70c95cf410

View File

@ -332,6 +332,7 @@ export class PGDatabase extends Database<pg.Pool, []> {
return this.connection.query(query, values).then(res => res.rows);
}
override escapeId(id: string) {
return (pg as any).escapeIdentifier(id);
// @ts-expect-error @types/pg really needs to be updated
return pg.escapeIdentifier(id);
}
}