Created
August 19, 2019 00:23
-
-
Save FCO/a18bdd8a7595ab66814f2e63a864348c to your computer and use it in GitHub Desktop.
Being $key-word = "ust"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.say for Post.^all.grep: { .title.contains($key-word) || .body.contains($key-word) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
post.id , post.author_id as "author-id", post.title , post.body , post.created , post.updated , post.deleted | |
FROM | |
post | |
WHERE | |
post.body like '%ust%' OR post.title like '%ust%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment