pg-structure
pg-structure copied to clipboard
keepConnection should be true by default if pg.Client or pg.Pool is passed
Hi,
Thanks for the pg-structure!
Just some feedback on API ergonomics. I think it would make API more ergonomic if pg-structure would keep connections open if it passed pg.Client or pg.Pool — the justification is that if a user passed an initialised connection then they are responsible for its lifecycle.
Thanks for the suggestion.