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

Method GetSchemaData

viewer/tableutil.go:160–168  ·  view source on GitHub ↗

GetSchemaData is a helper function to get the data of the current schema

()

Source from the content-addressed store, hash-verified

158
159// GetSchemaData is a helper function to get the data of the current schema
160func (m *TuiModel) GetSchemaData() map[string][]interface{} {
161 n := m.GetSchemaName()
162 t := m.Table()
163 d := t.Data
164 if d[n] == nil {
165 return map[string][]interface{}{}
166 }
167 return d[n].(map[string][]interface{})
168}
169
170func (m *TuiModel) GetSelectedColumnName() string {
171 col := m.GetColumn()

Callers 5

SetViewSlicesMethod · 0.95
GetColumnDataMethod · 0.95
GetRowDataMethod · 0.95
initFunction · 0.80
WriteCSVFunction · 0.80

Calls 2

GetSchemaNameMethod · 0.95
TableMethod · 0.95

Tested by

no test coverage detected