(stmt string)
| 734 | } |
| 735 | |
| 736 | func IsNonTransactionStatement(stmt string) bool { |
| 737 | if len(dropDatabaseReg.FindString(stmt)) > 0 { |
| 738 | return true |
| 739 | } |
| 740 | if len(createIndexReg.FindString(stmt)) > 0 { |
| 741 | return true |
| 742 | } |
| 743 | if len(dropIndexReg.FindString(stmt)) > 0 { |
| 744 | return true |
| 745 | } |
| 746 | return len(vacuumReg.FindString(stmt)) > 0 |
| 747 | } |
| 748 | |
| 749 | func isSuperuserStatement(stmt string) bool { |
| 750 | upperCaseStmt := strings.ToUpper(strings.TrimLeftFunc(stmt, unicode.IsSpace)) |
no outgoing calls
no test coverage detected