Help to decipher this code!

Given that the SQL-like stuff we see talks about a p I would guess that pq is the “p query” and this is an ORM or something that builds SQL using fragments like the column definition and the OrderBy etc… But yeah, none of that changes the big picture.

Either the expression makes sense as is, with additions, multiplications and ifs, or you better ask someone who knows the entire system.

It is not a Go question.

1 Like