You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to be able to set a custom type parser for postgres data types at an instance level in addition to the query level. I'd be happy to work on this pr, but wanted to get some input on how it should look first.
API
import{PGlite,types}from'@electric-sql/pglite';constpg=awaitPGlite.create({parsers: {[types.TEXT]: (value)=>value.toUpperCase(),},});// or constpg=awaitPGlite.create();pg.setParser(types.TEXT,(value)=>value.toUpperCase());
It should probably be one or the other, which one do you think fits in best?
It would be great to be able to set a custom type parser for postgres data types at an instance level in addition to the query level. I'd be happy to work on this pr, but wanted to get some input on how it should look first.
API
It should probably be one or the other, which one do you think fits in best?
Relevant examples
node-postgres
drizzle-orm
The text was updated successfully, but these errors were encountered: