Skip to content

Integrate your database transactions seamlessly into the gin context, enabling effortless retrieval and utilization within your routes.

License

Notifications You must be signed in to change notification settings

askrella/gin-transaction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gin-transactions

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.

Database support

  • Neo4j
  • Gorm

Installation

go get -u github.com/askrella/gin-transactions

Register gin middleware

gintx.BuildNeo4JTransactionMiddleware
gintx.BuildGormTransactionMiddleware

Retrieve database transaction

gintx.GetNeo4JTransaction
gintx.GetGormTransaction

About

Integrate your database transactions seamlessly into the gin context, enabling effortless retrieval and utilization within your routes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages