MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / GetDB

Function GetDB

cmd/cql-proxy/model/utils.go:25–27  ·  view source on GitHub ↗

GetDB returns the database mapping object from gin context.

(c *gin.Context)

Source from the content-addressed store, hash-verified

23
24// GetDB returns the database mapping object from gin context.
25func GetDB(c *gin.Context) *gorp.DbMap {
26 return c.MustGet("db").(*gorp.DbMap)
27}

Callers 15

applyTokenFunction · 0.92
showAllAccountsFunction · 0.92
getBalanceFunction · 0.92
setMainAccountFunction · 0.92
projectIDInjectFunction · 0.92
userAuthLogoutFunction · 0.92
getCurrentProjectDBFunction · 0.92
genKeyPairFunction · 0.92
uploadKeyPairFunction · 0.92
deleteKeyPairFunction · 0.92
downloadKeyPairFunction · 0.92
createDBFunction · 0.92

Calls 1

MustGetMethod · 0.80

Tested by

no test coverage detected