(di *sdata.DBInfo)
| 354 | } |
| 355 | |
| 356 | func hideRawCodeSQLTables(di *sdata.DBInfo) { |
| 357 | if di == nil { |
| 358 | return |
| 359 | } |
| 360 | for i := range di.Tables { |
| 361 | name := strings.ToLower(di.Tables[i].Name) |
| 362 | if name == "gj_code" { |
| 363 | continue |
| 364 | } |
| 365 | if strings.HasPrefix(name, "code_") { |
| 366 | di.Tables[i].Blocked = true |
| 367 | for j := range di.Tables[i].Columns { |
| 368 | di.Tables[i].Columns[j].Blocked = true |
| 369 | } |
| 370 | } |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | // initDBContext creates a fully initialized database context for runtime additions. |
| 375 | // This is used by AddDatabase after GraphJin is already running. |
no outgoing calls
no test coverage detected