TheMelonAssassin
Issue with how timestamptz is returned depending on main or subquery
Huh really?
It's a super weird thing, the same date from the same lesson returned in two different formats
I'll check out the package to streamline the output, but I'm not sure how it happens in the first place
15 replies
select expression helper
Might help you along the way, since I'd need some more context for your example.
I created the following helper:
I use this pattern to add some helper functions per entity I have.
This is how the helper is called:
9 replies
Creating helper functions
I was wondering about two things after messing around more with extracting parts of my queries.
1. Why did you go with
whereRef("module.ID", "=", moduleId)
here? Isn't the moduleID always a value in this scope? I understand it's passed down as a column reference from the main function.
2. Say I want to use this function to use this function with an actual moduleID
rather then a column ref. Would I just need to the following:
14 replies