We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d373474 commit d4666b6Copy full SHA for d4666b6
internal/codegen/golang/gen.go
@@ -427,7 +427,9 @@ func readOnly(queries []Query) []Query {
427
if !strings.Contains(qsql, "SELECT") {
428
continue
429
}
430
- if strings.Contains(qsql, "UPDATE") || strings.Contains(qsql, "INSERT") {
+ if strings.Contains(qsql, "INSERT") ||
431
+ strings.Contains(qsql, "UPDATE") ||
432
+ strings.Contains(qsql, "DELETE") {
433
434
435
0 commit comments