MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / AddFields

Method AddFields

internal/utils/kvstore/table_field.go:25–33  ·  view source on GitHub ↗
(fieldName ...string)

Source from the content-addressed store, hash-verified

23}
24
25func (this *Table[T]) AddFields(fieldName ...string) error {
26 for _, subFieldName := range fieldName {
27 err := this.AddField(subFieldName)
28 if err != nil {
29 return err
30 }
31 }
32 return nil
33}
34
35func (this *Table[T]) DropField(fieldName string) error {
36 this.mu.Lock()

Callers 6

TestTable_AddFieldFunction · 0.80
TestTable_AddField_ManyFunction · 0.80
TestTable_InspectFunction · 0.80
initMethod · 0.80
OpenMethod · 0.80

Calls 1

AddFieldMethod · 0.95

Tested by 4

TestTable_AddFieldFunction · 0.64
TestTable_AddField_ManyFunction · 0.64
TestTable_InspectFunction · 0.64