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
If there's interest in fixing this I'd be happy to submit a quick PR for either just removing those lines or having a separate implementation for the worker type.
Expected behavior
PGLiteWorker (multi tab instance) should work as well as the in memory PGLiteWorker (
Environment & setup
No response
The text was updated successfully, but these errors were encountered:
What version of
drizzle-orm
are you using?0.33.0
What version of
drizzle-kit
are you using?None
Describe the Bug
Cannot instantiate a drizzle pglite based instance with PGLiteWorker. This seems to be due to a structured cloning error.
This is caused by trying to send the functions over the broadcast channel here
drizzle-orm/drizzle-orm/src/pglite/session.ts
Lines 34 to 51 in c8359a1
Once I removed those functions it works fine.
If there's interest in fixing this I'd be happy to submit a quick PR for either just removing those lines or having a separate implementation for the worker type.
Expected behavior
PGLiteWorker (multi tab instance) should work as well as the in memory PGLiteWorker (
Environment & setup
No response
The text was updated successfully, but these errors were encountered: