MCPcopy Create free account
hub / github.com/Percona-Lab/mysql_random_data_load / constraintsAsMap

Function constraintsAsMap

tableparser/tableparser.go:363–375  ·  view source on GitHub ↗
(constraints []Constraint)

Source from the content-addressed store, hash-verified

361}
362
363func constraintsAsMap(constraints []Constraint) map[string]*Constraint {
364 m := make(map[string]*Constraint)
365 for _, c := range constraints {
366 m[c.ColumnName] = &Constraint{
367 ConstraintName: c.ConstraintName,
368 ColumnName: c.ColumnName,
369 ReferencedTableSchema: c.ReferencedTableSchema,
370 ReferencedTableName: c.ReferencedTableName,
371 ReferencedColumnName: c.ReferencedColumnName,
372 }
373 }
374 return m
375}

Callers 1

parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected