Closed stanislav-poliakov closed 6 months ago
Currently, there is no support for having two selects in one query 🤔 ... but it should be possible in theory...
It might require something like this:
let positionLt10 =
select {
for p in personTable do
where (p.Position < 10)
}
select {
for p in personTable do
where (p.Position > 5)
unionAll positionLt10
}
|> conn.SelectAsync<Person>
OTOH, that's kind of clunky, so I'm inclined to think that this is one of those "write a manual query" situations.
OTOH, that's kind of clunky, so I'm inclined to think that this is one of those "write a manual query" situations.
Same here. Let's keep the API nice and clean.
It will be great have possibility to use it