Skip to content

pglite parsers "could not be cloned"Β #830

@jay-babu

Description

@jay-babu
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:

        const res = await db.query(itemFiltersOptions.query, itemFiltersOptions.params, {
          parsers: {
            [types.NUMERIC]: (value: string) => {
              console.log("Parsing numeric value:", value);
              return new BigDecimal(value)
            },
          },
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions