(names []string, columns []int)
| 16 | } |
| 17 | |
| 18 | func Constructor(names []string, columns []int) SQL { |
| 19 | sql := SQL{ |
| 20 | tables: make(map[string]*table), |
| 21 | } |
| 22 | for i, name := range names { |
| 23 | colCount := columns[i] |
| 24 | sql.tables[name] = &table{ |
| 25 | idInc: 0, |
| 26 | colCount: colCount, |
| 27 | rows: make(map[int][]string), |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | return sql |
| 32 | } |
| 33 | |
| 34 | func (q *SQL) Ins(name string, row []string) bool { |
| 35 | table, ok := q.tables[name] |
nothing calls this directly
no outgoing calls
no test coverage detected