Update README.md
This commit is contained in:
parent
f9ec9001e0
commit
0aeb9990da
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ The column values do not have to be literals, they can be nested queries:
|
|||
:role_id (-> (select :id)
|
||||
(from :role)
|
||||
(where [:in :name role-names]))}])
|
||||
(sql/format)))
|
||||
sql/format))
|
||||
=> ["INSERT INTO user_profile_to_role (user_profile_id, role_id)
|
||||
VALUES (12345, (SELECT id FROM role WHERE (name in (?, ?))))"
|
||||
"user" "editor"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue