Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatColumnSelect ¶
FormatColumnSelect returns a list of column names to be used in a SQL Select modified with optional alias and destination.
aliasAndDestination supports two arguments, an alias followed by a destination. Any arguments after are ignored.
If an alias is provided, each column is prefixed with it. Otherwise the columns are returned as is.
If a destination is provided, each column will be assigned to it. Otherwise there is no adjustment.
Example - alias, no destination. Input: ([id, name], "w") Output: [w.id, w.name]
Example - with alias, destination Input: ([id, name], "w", "workflow") Output: [w.id "workflow.id", w.name "workflow.name"]
Types ¶
This section is empty.