TrimStatement trims the unused characters from the statement for making getStatementWithResultLimit() happy.
(statement string)
| 204 | |
| 205 | // TrimStatement trims the unused characters from the statement for making getStatementWithResultLimit() happy. |
| 206 | func TrimStatement(statement string) string { |
| 207 | return strings.TrimLeftFunc(strings.TrimRightFunc(statement, utils.IsSpaceOrSemicolon), unicode.IsSpace) |
| 208 | } |
| 209 | |
| 210 | func MySQLPrependBytebaseAppComment(statement string) string { |
| 211 | return fmt.Sprintf("/*app=bytebase*/ %s", statement) |
no outgoing calls
no test coverage detected