bitemyapp / bitemyapp/bluetick

Esqueleto does not allow access to sub selects

Open
#1 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
10
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Not sure if you are looking for issues like this as inspiration/todo. I'll pop this in esqueleto if it doesn't belong here.

Esqueleto's `sub_select` has this type `query (expr (Value a)) -> expr (Value a)`. In raw sql I often want to utilize columns from a sub select for purposes other than returning (order, group, etc).

So you'd need something to unwrap the `Value`, like `expr (Value a) -> expr a`, since `^.` has type `expr (Entity val) -> EntityField val typ -> expr (Value typ) `

Currently this is not possible.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.