(table *Table)
| 656 | } |
| 657 | |
| 658 | func getCopyOfTableWithoutRows(table *Table) *Table { |
| 659 | filteredTable := &Table{Columns: []*Column{}} |
| 660 | |
| 661 | for _, column := range table.Columns { |
| 662 | filteredTable.Columns = append(filteredTable.Columns, |
| 663 | &Column{ |
| 664 | Type: column.Type, |
| 665 | Values: make([]ValueInterface, 0), |
| 666 | Name: column.Name, |
| 667 | }) |
| 668 | } |
| 669 | return filteredTable |
| 670 | } |
| 671 | |
| 672 | func isFulfillingFilters(row map[string]ValueInterface, expressionTree ast.Expression, commandName string) (bool, error) { |
| 673 | switch mappedExpression := expressionTree.(type) { |
no outgoing calls
no test coverage detected