(name string)
| 71 | } |
| 72 | |
| 73 | func (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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected