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

Function aggregateRowIntoJoinTable

engine/engine.go:607–613  ·  view source on GitHub ↗
(tableWithAddedPrefix *Table, joinedRow map[string]ValueInterface, joinedTable *Table)

Source from the content-addressed store, hash-verified

605}
606
607func aggregateRowIntoJoinTable(tableWithAddedPrefix *Table, joinedRow map[string]ValueInterface, joinedTable *Table) {
608 joinedEmptyRow := getEmptyRow(tableWithAddedPrefix)
609 maps.Copy(joinedRow, joinedEmptyRow)
610 for colIndex, column := range joinedTable.Columns {
611 joinedTable.Columns[colIndex].Values = append(joinedTable.Columns[colIndex].Values, joinedRow[column.Name])
612 }
613}
614
615func addColumnsWithPrefix(finalTable *Table, columnsToAdd []*Column, prefix string) {
616 for _, column := range columnsToAdd {

Callers 1

joinTablesMethod · 0.85

Calls 1

getEmptyRowFunction · 0.85

Tested by

no test coverage detected