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

Function New

common/config/sql/sql.go:145–158  ·  view source on GitHub ↗
(ctx context.Context, driver string, dsn string, prefix string)

Source from the content-addressed store, hash-verified

143}
144
145func New(ctx context.Context, driver string, dsn string, prefix string) (config.Store, error) {
146 var db *gorm.DB
147
148 //o, er := storage.Get(ctx, &db)
149 //if o && er != nil {
150 // return nil, er
151 //}
152
153 d := NewDAO(db)
154
155 return &SQL{
156 dao: d,
157 }, nil
158}
159
160func (s *SQL) Context(ctx context.Context) kv.Values {
161 return s.config.Context(ctx)

Callers 2

OpenMethod · 0.70
WithAPICodeFunction · 0.50

Calls 1

NewDAOFunction · 0.70

Tested by

no test coverage detected