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

Function getCurrentProject

cmd/cql-proxy/api/utils.go:78–80  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

76}
77
78func getCurrentProject(c *gin.Context) *model.Project {
79 return c.MustGet("project").(*model.Project)
80}
81
82func getDatabaseProfile(dbID proto.DatabaseID) (profile *types.SQLChainProfile, err error) {
83 req := &types.QuerySQLChainProfileReq{

Callers 2

getCurrentProjectDBFunction · 0.85
buildExecuteContextFunction · 0.85

Calls 1

MustGetMethod · 0.80

Tested by

no test coverage detected