MCPcopy Index your code
hub / github.com/apache/devlake / save

Method save

backend/plugins/org/api/store.go:111–124  ·  view source on GitHub ↗
(items []interface{})

Source from the content-addressed store, hash-verified

109}
110
111func (d *dbStore) save(items []interface{}) errors.Error {
112 for _, item := range items {
113 batch, err := d.driver.ForType(reflect.TypeOf(item))
114 if err != nil {
115 return err
116 }
117 err = batch.Add(item)
118 if err != nil {
119 return err
120 }
121 }
122 d.driver.Close()
123 return nil
124}

Callers

nothing calls this directly

Calls 3

ForTypeMethod · 0.80
CloseMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected