MCPcopy Create free account
hub / github.com/LissaGreense/GO4SQL / getCopyOfTableWithoutRows

Function getCopyOfTableWithoutRows

engine/engine.go:658–670  ·  view source on GitHub ↗
(table *Table)

Source from the content-addressed store, hash-verified

656}
657
658func 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
672func isFulfillingFilters(row map[string]ValueInterface, expressionTree ast.Expression, commandName string) (bool, error) {
673 switch mappedExpression := expressionTree.(type) {

Callers 4

getFilteredTableMethod · 0.85
getDistinctTableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected