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

Support for "automatic transaction" management like spring boot #582

Open
rullyalves opened this issue May 21, 2024 · 1 comment
Open

Support for "automatic transaction" management like spring boot #582

rullyalves opened this issue May 21, 2024 · 1 comment

Comments

@rullyalves
Copy link

rullyalves commented May 21, 2024

I believe it would be interesting to have support for more "automatic" handling of transactions, just writing a transaction manager while creating my application, I would like to know if I can contribute a PR.

example:

// where *T is your possible returned value
txManager := neo4jdb.WithTransaction[T](driver)

_, err := txManager(currentCtx, func(transactionCtx context.Context) (*T, error) {
	// execute your custom service logic in transaction
})
@rullyalves rullyalves changed the title Support for "automatic transaction management" Support for "automatic transaction" management like spring boot May 21, 2024
@fuad-daoud
Copy link

this would be great

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

2 participants