quoteIdentifier quotes an identifier for safe use in SQL
(name string)
| 957 | |
| 958 | // quoteIdentifier quotes an identifier for safe use in SQL |
| 959 | func quoteIdentifier(name string) string { |
| 960 | // Double any existing quotes and wrap in quotes |
| 961 | escaped := strings.ReplaceAll(name, `"`, `""`) |
| 962 | return `"` + escaped + `"` |
| 963 | } |
no outgoing calls
no test coverage detected