Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize connection access #2

Open
czeidler opened this issue Sep 13, 2024 · 0 comments
Open

Serialize connection access #2

czeidler opened this issue Sep 13, 2024 · 0 comments

Comments

@czeidler
Copy link

I wasn't aware of your repo and did my own version of kysely-pglite. I had a problem where the connections where not serialized, e.g. concurrent tasks mixed up queries and transactions. I solve it by serializing the access to the connections. Feel free to copy:

https://github.com/czeidler/kysely-pglite/blob/82cdb067fa5668084ef7f290d998f9dae07b49f2/src/dialect.ts#L53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant