mirror of
https://github.com/rancher/steve.git
synced 2025-06-29 16:27:15 +00:00
* Copy pkg/cache/sql from lasso to pkg/sqlcache * Rename import from github.com/rancher/lasso/pkg/cache/sql to github.com/rancher/steve/pkg/sqlcache * Fix filter.Match -> filter.Matches * go mod tidy * Fix lint errors * Remove lasso SQL cache mentions * Fix more CI lint errors * fix goimports Signed-off-by: Silvio Moioli <silvio@moioli.net> * fix tests (Match -> Matches) Signed-off-by: Silvio Moioli <silvio@moioli.net> * Fix Sort order --------- Signed-off-by: Silvio Moioli <silvio@moioli.net> Co-authored-by: Silvio Moioli <silvio@moioli.net>
9 lines
169 B
Go
9 lines
169 B
Go
package db
|
|
|
|
import "strings"
|
|
|
|
// Sanitize returns a string that can be used in SQL as a name
|
|
func Sanitize(s string) string {
|
|
return strings.ReplaceAll(s, "\"", "")
|
|
}
|