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

Inserts job in existing transaction by passing pgClient instance #515

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SylvainMarty
Copy link

This is my take at the attempt made four years ago with the PR #200.

These changes don't introduce any breaking change with the existing behavior.

Fixes #199

Description

The idea is to be able to pass a pg.Client instance to be used by the executeSql() of the database wrapper instead of using the connection pool.
For this, I created a new property executeOptions in the ConnectionOptions to allow us to add more options later if we need it.
This new executeOptions property is optional and can totally be used by custom implementation of the Db wrapper since it was the only workaround available since then.

@timgit
Copy link
Owner

timgit commented Oct 19, 2024

This already exists via the db option in most functions.

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

Successfully merging this pull request may close these issues.

publishing in a transaction
2 participants