Skip to content

Functional equivalent to toPostgres #786

@moll

Description

@moll

Hey,

The toPostgres method is great for classes and objects one can edit, but unsuitable for closed classes one's not supposed to touch. What would the functional equivalent be that doesn't require mucking other classes?

I've so far wrapped pg/lib/utils's prepareValue, but I'm worried it's not part of the public API. Also, its array preparing function arraySring calls prepareValue directly, rather than through the module.exports object, bypassing my modifications.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions