Skip to content

Commit

Permalink
feat: remove using
Browse files Browse the repository at this point in the history
  • Loading branch information
VarusHsu committed Feb 6, 2024
1 parent fe0da71 commit 30b0ad8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions select.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ type toSelectJoin interface {

type selectWithJoin interface {
On(condition BooleanExpression) selectWithJoinOn
Using(fields ...Field) selectWithJoinOn
}

type selectWithJoinOn interface {
Expand Down Expand Up @@ -144,7 +143,6 @@ type join struct {
prefix string
table Table
on BooleanExpression
using []Field
}

type selectBase struct {
Expand Down Expand Up @@ -221,14 +219,6 @@ func (s selectStatus) On(condition BooleanExpression) selectWithJoinOn {
return s
}

func (s selectStatus) Using(fields ...Field) selectWithJoinOn {
base := activeSelectBase(&s)
join := *base.scope.lastJoin
join.using = fields
base.scope.lastJoin = &join
return s
}

func getFields(fields []interface{}) (result []Field) {
fields = expandSliceValues(fields)
result = make([]Field, 0, len(fields))
Expand Down

0 comments on commit 30b0ad8

Please sign in to comment.