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
Validates every element against an inner descriptor and renders a
comma-separated SQL list. Strings are quoted with single quotes
escaped, numbers and booleans are rendered raw. Empty arrays are
rejected. Closes a gap where users previously had to manually join
array values, which bypassed the injection denylist.
TypeDescriptor now has an optional escape(val) method; when set, the
renderer uses it instead of the default escapeValue to format the
interpolated string.
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,26 @@ const { sql } = getEvents({
111
111
|`schema.positiveInt`| Positive integer |`100`|
112
112
|`schema.enum(...)`| Whitelist of allowed values |`schema.enum('asc', 'desc')`|
113
113
|`schema.s3Path`| S3 URI |`'s3://athena-results/queries/'`|
114
+
|`schema.array(inner)`| Non-empty array of `inner` values |`schema.array(schema.positiveInt)`|
115
+
116
+
### Array Values (IN clauses)
117
+
118
+
`schema.array(inner)` validates every element against `inner` and renders a comma-separated SQL list. Strings are quoted and their single quotes escaped; numbers and booleans are rendered raw. Empty arrays are rejected.
0 commit comments