Add Store service for Focalboard multi-product architecture (#20568)

* add Store service
Этот коммит содержится в:
Doug Lauder
2022-06-30 08:28:37 -04:00
коммит произвёл GitHub
родитель 1d9fa3c333
Коммит 91877c3016
3 изменённых файлов: 25 добавлений и 0 удалений

Просмотреть файл

@@ -1021,3 +1021,18 @@ type SidebarCategorySearchOpts struct {
TeamID string
ExcludeTeam bool
}
// StoreServiceAdapter provides a simple Store wrapper for use with products.
type StoreServiceAdapter struct {
store Store
}
func NewStoreServiceAdapter(store Store) *StoreServiceAdapter {
return &StoreServiceAdapter{
store: store,
}
}
func (a *StoreServiceAdapter) GetMasterDB() *sql.DB {
return a.store.GetInternalMasterDB()
}