MCPcopy
hub / github.com/mathaou/termdbms / GetSelectedColumnName

Method GetSelectedColumnName

viewer/tableutil.go:170–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170func (m *TuiModel) GetSelectedColumnName() string {
171 col := m.GetColumn()
172 headers := m.GetHeaders()
173 index := Min(m.NumHeaders()-1, col)
174 if len(headers) == 0 {
175 return ""
176 }
177 return headers[index]
178}
179
180func (m *TuiModel) GetColumnData() []interface{} {
181 schemaData := m.GetSchemaData()

Callers 2

GetColumnDataMethod · 0.95
EditEnterFunction · 0.80

Calls 4

GetColumnMethod · 0.95
GetHeadersMethod · 0.95
NumHeadersMethod · 0.95
MinFunction · 0.85

Tested by

no test coverage detected