You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of having a Maybe ServerSessionRow, I need to have a Maybe on every column, which suggests that some columns may be present and some may be missing, while this is not the case if the left join does not hit.
There are columns (ip_range and user_agent) that are nullable in their own right, and this fact is masked by them potentially being null due to a left join miss. I just have to know their nullability and not check for it in my Maybe do block at the bottom.
Is there guidance on a better way to handle this case?
The text was updated successfully, but these errors were encountered:
right now I have some code that looks like this:
This is slightly unsatisfactory for a few reason:
Maybe ServerSessionRow
, I need to have aMaybe
on every column, which suggests that some columns may be present and some may be missing, while this is not the case if the left join does not hit.ip_range
anduser_agent
) that are nullable in their own right, and this fact is masked by them potentially being null due to a left join miss. I just have to know their nullability and not check for it in myMaybe
do block at the bottom.Is there guidance on a better way to handle this case?
The text was updated successfully, but these errors were encountered: