electric-sql / electric-sql/pglite
pglite parsers "could not be cloned"
- Dominant language
- TypeScript
- Stars
- 16k
- Forks
- 442
- Avg merge
- 20h 19m
- Merged PRs (30d)
- 7
Description
The above code throws an error however when doing the same thing except when passing the parsers next to the queries, the error does not occur. This leads me to think there is some error with pglite handling the parsers.
Code that works fine:
```javascript
const res = await db.query(itemFiltersOptions.query, itemFiltersOptions.params, {
parsers: {
[types.NUMERIC]: (value: string) => {
console.log("Parsing numeric value:", value);
return new BigDecimal(value)
},
},
});
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.