electric-sql / electric-sql/pglite

pglite parsers "could not be cloned"

Open
#830 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16k
Forks
442
Avg merge
20h 19m
Merged PRs (30d)
7

Description

Image

Image

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.