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
Just to check, does it work if you crate a PGlite, add the new types, close the database and restart it then try and use the new type?
Obviously this is not ideal...
I think your option one above sounds good to me (exposing the initArrayTypes method), I wouldn't want to add the overhead of checking for new types on each query.
Are you up for having a go at adding this? I'm happy to help walk you through it?
Maybe just make _initArrayTypes public (drop the _) and ensure it can be run multiple times without duplicating the array types.
Hi all, we've run into an issue when trying to insert arrays of enums into the database because of how array serializers work.
Context
We use typeorm pglite driver to run tests. The PGLite instance gets initiated, we run the db migrations, and then we execute tests.
Reproduction
_initArrayTypes
Solution
I see two possible solutions:
I'd appreciate any help, I am happy to submit a PR to address the issue.
Thanks!
The text was updated successfully, but these errors were encountered: