(m *TuiModel)
| 17 | ) |
| 18 | |
| 19 | func Serialize(m *TuiModel) (string, error) { |
| 20 | switch m.Table().Database.(type) { |
| 21 | case *database.SQLite: |
| 22 | return SerializeSQLiteDB(m.Table().Database.(*database.SQLite), m), nil |
| 23 | default: |
| 24 | return "", errors.New(serializationErrorString) |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func SerializeOverwrite(m *TuiModel) error { |
| 29 | t := m.Table() |
no test coverage detected