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

Method getMissingColumnName

engine/engine.go:505–519  ·  view source on GitHub ↗
(columnNames []string, table *Table)

Source from the content-addressed store, hash-verified

503}
504
505func (engine *DbEngine) getMissingColumnName(columnNames []string, table *Table) string {
506 for _, columnName := range columnNames {
507 exists := false
508 for _, column := range table.Columns {
509 if column.Name == columnName {
510 exists = true
511 break
512 }
513 }
514 if !exists {
515 return columnName
516 }
517 }
518 return ""
519}
520
521func (engine *DbEngine) getFilteredTable(table *Table, whereCommand *ast.WhereCommand, negation bool, tableName string) (*Table, error) {
522 filteredTable := getCopyOfTableWithoutRows(table)

Callers 2

getSortedTableMethod · 0.95
getFilteredTableMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected