(ctx context.Context, driver string, dsn string, prefix string)
| 143 | } |
| 144 | |
| 145 | func 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 | |
| 160 | func (s *SQL) Context(ctx context.Context) kv.Values { |
| 161 | return s.config.Context(ctx) |
no test coverage detected