Skip to content

Commit 3bb2ee2

Browse files
authored
Add example with ANY() (#736)
1 parent f7f9a4e commit 3bb2ee2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/postgrex.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ defmodule Postgrex do
283283
284284
Postgrex.query(conn, "SELECT id FROM posts WHERE title like $1", ["%my%"])
285285
286+
Postgrex.query(conn, "SELECT id FROM posts WHERE state = ANY($1)", [["draft", "scheduled"]])
287+
286288
Postgrex.query(conn, "COPY posts TO STDOUT", [])
287289
"""
288290
@spec query(conn, iodata, list, [execute_option]) ::

0 commit comments

Comments
 (0)