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
})
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: