Skip to content

Conversation

zengshun2019
Copy link

@zengshun2019 zengshun2019 commented Sep 6, 2024

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

add postgres StringAgg func

User Case Description

}

func (e expr) StringAgg() Expr {
return e.setE(clause.Expr{SQL: "STRING_AGG(?, ',')", Vars: []interface{}{e.RawExpr()}})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the separator to a parameter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants