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

Method Rmv

design_sql_2408/solution.go:45–53  ·  view source on GitHub ↗
(name string, rowId int)

Source from the content-addressed store, hash-verified

43}
44
45func (q *SQL) Rmv(name string, rowId int) {
46 table, ok := q.tables[name]
47 if !ok {
48 return
49 }
50
51 // deletes are idempotent, no need to check if it exists or not
52 delete(table.rows, rowId)
53}
54
55func (q *SQL) Sel(name string, rowId int, columnId int) string {
56 table, ok := q.tables[name]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected