Skip to content

Commit

Permalink
feat: support Column in ValuesQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Jan 6, 2022
1 parent 1f41fa9 commit 0707679
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions query_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ func (q *ValuesQuery) Conn(db IConn) *ValuesQuery {
return q
}

func (q *ValuesQuery) Column(columns ...string) *ValuesQuery {
for _, column := range columns {
q.addColumn(schema.UnsafeIdent(column))
}
return q
}

// Value overwrites model value for the column.
func (q *ValuesQuery) Value(column string, expr string, args ...interface{}) *ValuesQuery {
if q.table == nil {
Expand Down

0 comments on commit 0707679

Please sign in to comment.