You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A regex used to ignore placeholders or other fragments of the query that'd make it invalid SQL query, e.g.
63
+
64
+
If you are using `?` placeholders in your queries, you must ignore `\?` pattern as otherwise the string is not going to be recognized as a valid SQL query.
65
+
66
+
This configuration is relevant for `sql/no-unsafe-query` to match queries containing placeholders as well as for `sql/format` when used with `{ignoreTagless: false}` configuration.
A regex used to ignore placeholders or other fragments of the query that'd make it invalid SQL query, e.g.
76
+
77
+
If you are using `?` placeholders in your queries, you must ignore `\?` pattern as otherwise the string is not going to be recognized as a valid SQL query.
78
+
79
+
This configuration is relevant for `sql/no-unsafe-query` to match queries containing placeholders as well as for `sql/format` when used with `{ignoreTagless: false}` configuration.
72
80
73
81
<aname="eslint-plugin-sql-rules"></a>
74
82
## Rules
@@ -180,6 +188,9 @@ The following patterns are considered problems:
180
188
181
189
foo`SELECT ${'bar'}`
182
190
// Message: Use "sql" tag
191
+
192
+
`SELECT ?`
193
+
// Message: Use "sql" tag
183
194
```
184
195
185
196
The following patterns are not considered problems:
0 commit comments