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

Function Serialize

viewer/serialize.go:19–26  ·  view source on GitHub ↗
(m *TuiModel)

Source from the content-addressed store, hash-verified

17)
18
19func 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
28func SerializeOverwrite(m *TuiModel) error {
29 t := m.Table()

Callers 1

EditEnterFunction · 0.85

Calls 2

SerializeSQLiteDBFunction · 0.85
TableMethod · 0.80

Tested by

no test coverage detected