-
-
Save AnthonySuper/eecf08998135685774cfbc17f484327b to your computer and use it in GitHub Desktop.
Slightly Evil Haskell Stuff
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
getIds = do | |
users <- selectFromTable #profiles | |
artworks <- innerJoinTable #artworks $ \aw -> aw ^. #profile_id .== users ^. #id | |
pure $ mkRow #userName (users ^. #name) <:> mkRow #artworkName (artworks ^. #title) <:> emptyRow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment