MCPcopy
hub / github.com/dosco/graphjin / hideRawCodeSQLTables

Function hideRawCodeSQLTables

core/init_multidb.go:356–372  ·  view source on GitHub ↗
(di *sdata.DBInfo)

Source from the content-addressed store, hash-verified

354}
355
356func 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.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected