func WithGorm(dialect, connectionInfo string) ServicesConfig {
	return func(s *Services) error {
		db, err := gorm.Open(dialect, connectionInfo)
		if err != nil {
			return err
		}
		s.db = db
		return nil
	}
}
// WithGorm opens a database connection using the Gorm package and
// sets the database
WithGorm opens a database connection using the Gorm package and
sets the database
// WithGorm opens a database connection using the Gorm package and // sets the database
func WithGorm(dialect, connectionInfo string) ServicesConfig {
	return func(s *Services) error {
		db, err := gorm.Open(dialect, connectionInfo)
		if err != nil {
			return err
		}
		s.db = db
		return nil
	}
}
func WithGorm ( dialect , connectionInfo string ) ServicesConfig { return func ( s * Services ) error { db , err := gorm . Open ( dialect , connectionInfo ) if err != nil { return err } s . db = db return nil } }
WithGorm opens a database connection using the Gorm package and
sets the database
WithGorm opens a database connection using the Gorm package and sets the database