MCPcopy Create free account
hub / github.com/pydio/cells / Get

Method Get

common/config/sql/sql.go:183–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181}
182
183func (s *SQL) Get() any {
184 dao := s.dao.(DAO)
185
186 v := configx.New(kv.WithJSON())
187
188 b, err := dao.Get(context.TODO())
189 if err != nil {
190 v.Set(map[string]interface{}{})
191 }
192
193 v.Set(b)
194
195 s.config = v
196
197 return v.Get()
198}
199
200func (s *SQL) Set(value interface{}) error {
201 dao := s.dao.(DAO)

Callers 1

ValMethod · 0.95

Calls 4

NewFunction · 0.92
WithJSONFunction · 0.92
GetMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected