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
Hi,
I've been looking for functionality similar to ColumnExpr() that will select into the right field when used in a Relation query.
Although it's a different module, go-pg's Issue #1852 describes this exact problem.
This could, perhaps, be addressed be implementing a function similar to *InsertQuery.Value(column string, expr string, args ...interface{}), so that the name of the column could be taken as a separate argument. Then, maybe it could be handled similar to the way #139 addressed this?
See this gist for a clearer example.
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered:
Hi,
I've been looking for functionality similar to
ColumnExpr()
that will select into the right field when used in a Relation query.Although it's a different module, go-pg's Issue #1852 describes this exact problem.
This could, perhaps, be addressed be implementing a function similar to
*InsertQuery.Value(column string, expr string, args ...interface{})
, so that the name of the column could be taken as a separate argument. Then, maybe it could be handled similar to the way #139 addressed this?See this gist for a clearer example.
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: