mirror of
https://github.com/go-micro/go-micro.git
synced 2025-09-16 08:36:30 +02:00
replace strings for store prefix (#1465)
Co-authored-by: ben-toogood <bentoogood@gmail.com>
This commit is contained in:
@@ -315,6 +315,7 @@ func (s *sqlStore) configure() error {
|
||||
return errors.New("error compiling regex for namespace")
|
||||
}
|
||||
namespace = reg.ReplaceAllString(namespace, "_")
|
||||
prefix = reg.ReplaceAllString(prefix, "_")
|
||||
|
||||
source := s.options.Nodes[0]
|
||||
// check if it is a standard connection string eg: host=%s port=%d user=%s password=%s dbname=%s sslmode=disable
|
||||
|
Reference in New Issue
Block a user