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

It should be great to be able to start a transaction inside a transaction #985

Open
ecochard opened this issue Nov 20, 2024 · 0 comments
Open

Comments

@ecochard
Copy link

nothing to do with real postgres transactions
but logically it should be great to be able to imbricate transactions inside the code.

just add something like

transactionSql.begin = ( callback ) => {
    return callback( this );
}

this way, when I have a connection or a transaction started by sql.begin i can pass the objet to a method that don't know if it's a transaction

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