code: func Pattern(glob string) string {
  	s := fmt.Sprintf("%%%s%%", strings.Replace(glob, "*", "%", -1))
  	return squeezer.ReplaceAllString(s, "%")
  }
docs: // Turns globs ('*search*') into SQL patterns ('%search%')