79555347

Date: 2025-04-04 12:52:01
Score: 0.5
Natty:
Report link

Ok so I was able to solve this by checking information_schema.columns table and verifing the id exists in the tables

if err := db.Table("information_schema.columns").
            Where("column_name = ? AND table_name not in (?)", "id", excludeTables).
            Pluck("table_name", &tableNames).
            Error; err != nil {
            return err
        }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: rak1n