1
0
mirror of https://github.com/rancher/steve.git synced 2025-07-17 16:31:30 +00:00
steve/pkg/sqlcache/db/utility.go
Tom Lebreux 9741028761
[v0.3] Migrate SQL cache to Steve (#474)
* Migrate SQLcache to Steve

* Fix imports

* 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 more linting errors

* More lint fix

* Add envtest support

---------

Signed-off-by: Silvio Moioli <silvio@moioli.net>
Co-authored-by: Silvio Moioli <silvio@moioli.net>
2025-02-04 12:41:59 -05:00

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, "\"", "")
}