MCPcopy Index your code
hub / github.com/upper/db / marshal

Function marshal

internal/sqlbuilder/builder.go:549–557  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

547}
548
549func marshal(v interface{}) (interface{}, error) {
550 if m, isMarshaler := v.(db.Marshaler); isMarshaler {
551 var err error
552 if v, err = m.MarshalDB(); err != nil {
553 return nil, err
554 }
555 }
556 return v, nil
557}
558
559func (fv *fieldValue) Len() int {
560 return len(fv.fields)

Callers 1

MapFunction · 0.85

Calls 1

MarshalDBMethod · 0.65

Tested by

no test coverage detected