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

Method Ins

design_sql_2408/solution.go:34–43  ·  view source on GitHub ↗
(name string, row []string)

Source from the content-addressed store, hash-verified

32}
33
34func (q *SQL) Ins(name string, row []string) bool {
35 table, ok := q.tables[name]
36 if !ok || len(row) != table.colCount {
37 return false
38 }
39
40 table.idInc++
41 table.rows[table.idInc] = row
42 return true
43}
44
45func (q *SQL) Rmv(name string, rowId int) {
46 table, ok := q.tables[name]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected