The "gin-transactions" library, developed by Askrella, provides a middleware that seamlessly integrates database transactions into the gin context. Our middleware injects the database transaction into the gin context, enabling developers to effortlessly retrieve and utilize the transaction within their routes.
- Neo4j
- Gorm
go get -u github.com/askrella/gin-transactions
gintx.BuildNeo4JTransactionMiddleware
gintx.BuildGormTransactionMiddleware
gintx.GetNeo4JTransaction
gintx.GetGormTransaction