Created
October 27, 2019 11:50
-
-
Save FCO/5e15679012d7084c5b3a8d39d6b5a4d5 to your computer and use it in GitHub Desktop.
redable
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
use Post; my $*RED-DEBUG = True; say Post.^all.pick: 5 |
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
SQL : SELECT | |
post.id , post.author_id as "author-id", post.title , post.body , post.deleted , post.created , post.tags | |
FROM | |
post | |
ORDER BY | |
random() | |
LIMIT 5 | |
(Post.new(id => 1, title => "test1", body => "body-test1", deleted => 0, created => DateTime.new(2019,10,22,12,0,19.196347), tags => Set.new("")) Post.new(id => 2, title => "Is it working?", body => "I think it is", deleted => 0, created => DateTime.new(2019,10,22,12,12,8.809766), tags => Set.new(""))) | |
BIND: [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment