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

Method getTableCopyWithAddedPrefixToColumnNames

engine/table.go:120–133  ·  view source on GitHub ↗
(columnNamePrefix string)

Source from the content-addressed store, hash-verified

118}
119
120func (table *Table) getTableCopyWithAddedPrefixToColumnNames(columnNamePrefix string) *Table {
121 newTable := &Table{Columns: []*Column{}}
122
123 for _, column := range table.Columns {
124 newTable.Columns = append(newTable.Columns,
125 &Column{
126 Type: column.Type,
127 Values: column.Values,
128 Name: columnNamePrefix + column.Name,
129 })
130 }
131
132 return newTable
133}
134
135func getBar(columWidths []int) string {
136 bar := "+"

Callers 1

joinTablesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected