You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I globally cache my pglite instance on my node server and close it only when I close the server.
But lets say I want to close pglite after each server response and re-open it once a new request comes in WITHOUT recreating a new instance, would it be possible to add a connect or open function like close?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently I globally cache my pglite instance on my node server and close it only when I close the server.
But lets say I want to close pglite after each server response and re-open it once a new request comes in WITHOUT recreating a new instance, would it be possible to add a
connect
oropen
function likeclose
?So far in a Nitro project I have:
utils/pglite.ts
:plugins/pglite.ts
:Beta Was this translation helpful? Give feedback.
All reactions