We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc513ef commit 15f7c45Copy full SHA for 15f7c45
README.md
@@ -314,7 +314,7 @@ Example for gORM with GCP-Postgres driver:
314
kgin.GinV1(kApp, r)
315
r.GET("/gin/:color/*type", func(c *gin.Context) {
316
// set the context of *gorm.DB with request's context of http Handler function before queries.
317
- pSQL_DB = pSQL_DB.WithContext(r.Context())
+ pSQL_DB = pSQL_DB.WithContext(c.Request.Context())
318
// Find
319
var (
320
people []Book
0 commit comments