From 1f65f0e3d6d142b859f8dda52da99cb3d4a01c9c Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Thu, 21 Jun 2018 12:02:35 +0100 Subject: MM-10233: Add scheme importing to bulk importer. (#8928) --- store/layered_store.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'store/layered_store.go') diff --git a/store/layered_store.go b/store/layered_store.go index 69513febf..851d7536c 100644 --- a/store/layered_store.go +++ b/store/layered_store.go @@ -287,6 +287,12 @@ func (s *LayeredSchemeStore) Get(schemeId string) StoreChannel { }) } +func (s *LayeredSchemeStore) GetByName(schemeName string) StoreChannel { + return s.RunQuery(func(supplier LayeredStoreSupplier) *LayeredStoreSupplierResult { + return supplier.SchemeGetByName(s.TmpContext, schemeName) + }) +} + func (s *LayeredSchemeStore) Delete(schemeId string) StoreChannel { return s.RunQuery(func(supplier LayeredStoreSupplier) *LayeredStoreSupplierResult { return supplier.SchemeDelete(s.TmpContext, schemeId) -- cgit v1.2.3-1-g7c22