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