ValidateWithDialect checks whether the given SQL string is syntactically valid using the specified SQL dialect for keyword recognition.
(sql string, dialect keywords.SQLDialect)
| 144 | // ValidateWithDialect checks whether the given SQL string is syntactically valid |
| 145 | // using the specified SQL dialect for keyword recognition. |
| 146 | func ValidateWithDialect(sql string, dialect keywords.SQLDialect) error { |
| 147 | return ValidateBytesWithDialect([]byte(sql), dialect) |
| 148 | } |
| 149 | |
| 150 | // ValidateBytesWithDialect is like ValidateWithDialect but accepts []byte. |
| 151 | func ValidateBytesWithDialect(input []byte, dialect keywords.SQLDialect) error { |