Skip to content

Commit 32ba10f

Browse files
committed
stash
1 parent 7ab0dc5 commit 32ba10f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/drivers/pglite.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export class PgliteDriver implements Driver {
1717
// eslint-disable-next-line no-restricted-syntax -- optional peer, see class comment
1818
const { PGlite } = await import("@electric-sql/pglite");
1919
const db = new PGlite() as unknown as PgliteDb;
20+
// Query all type OIDs so we can override all parsers to return raw strings.
2021
const { rows: types } = await db.query<{ oid: number }>("SELECT oid FROM pg_type");
2122
const parsers: { [key: number]: (v: string) => string } = Object.fromEntries(
2223
types.map((t) => [t.oid, (v: string) => v]),

0 commit comments

Comments
 (0)