GetSchemaData is a helper function to get the data of the current schema
()
| 158 | |
| 159 | // GetSchemaData is a helper function to get the data of the current schema |
| 160 | func (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 | |
| 170 | func (m *TuiModel) GetSelectedColumnName() string { |
| 171 | col := m.GetColumn() |
no test coverage detected