Skip to content

Commit

Permalink
add support for postgres json
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Dec 23, 2024
1 parent fde7008 commit dcf7e09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions electron/drivers/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ pg.types.setTypeParser(pg.types.builtins.TIMESTAMP, (timeStr) => timeStr);
pg.types.setTypeParser(pg.types.builtins.TIMESTAMPTZ, (timeStr) => timeStr);
pg.types.setTypeParser(pg.types.builtins.DATE, (timeStr) => timeStr);
pg.types.setTypeParser(pg.types.builtins.TIME, (timeStr) => timeStr);
pg.types.setTypeParser(pg.types.builtins.JSON, (json) => json);
pg.types.setTypeParser(pg.types.builtins.JSONB, (json) => json);

export default class PostgresDriver extends BaseDriver {
protected db: pg.Pool;
Expand Down

0 comments on commit dcf7e09

Please sign in to comment.