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!
Hey,
The
toPostgresmethod 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'sprepareValue, but I'm worried it's not part of the public API. Also, its array preparing functionarraySringcallsprepareValuedirectly, rather than through themodule.exportsobject, bypassing my modifications.Thanks!