MCPcopy Create free account
hub / github.com/austingebauer/go-leetcode / Exp

Method Exp

design_sql_2408/solution.go:73–85  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

71}
72
73func (q *SQL) Exp(name string) []string {
74 table, ok := q.tables[name]
75 if !ok {
76 return []string{}
77 }
78
79 rows := make([]string, 0, len(table.rows))
80 for id, row := range table.rows {
81 rows = append(rows, fmt.Sprintf("%d,%s", id, strings.Join(row, ",")))
82 }
83
84 return rows
85}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected