ppx_rapper
ppx_rapper copied to clipboard
Example with multiple joins.
It would be nice to have an example of how to use Rapper.load_many
with multiple joins. For example:
SELECT @string{topic.name}, @string{topic.slug},
@string{post.id}, @string{post.title}, @string{post.content},
@string{usr.name}, @int{usr.reputation}
FROM board
JOIN post ON post.topic = topic.id
JOIN usr ON usr.id = post.creator
WHERE topic.id = @string{topic.id};