MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / closeResolveDB

Function closeResolveDB

agent/middleware/operation.go:198–204  ·  view source on GitHub ↗
(db *gorm.DB)

Source from the content-addressed store, hash-verified

196}
197
198func closeResolveDB(db *gorm.DB) {
199 sqlDB, err := db.DB()
200 if err != nil {
201 return
202 }
203 _ = sqlDB.Close()
204}
205
206func isSafeIdentifier(val string) bool {
207 return re.GetRegex(re.SQLIdentifierPattern).MatchString(val)

Callers 1

resolveOperationValuesFunction · 0.85

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected