Skip to content

Commit

Permalink
renamed EncloseExpr to EncloseExp struct for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Jan 26, 2023
1 parent a72707a commit 8dbe67b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,16 +401,16 @@ func (e *BetweenExp) Build(db *DB, params Params) string {

// Enclose surrounds the provided nonempty expression with parenthesis "()".
func Enclose(exp Expression) Expression {
return &EncloseExpr{exp}
return &EncloseExp{exp}
}

// EncloseExpr represents a parenthesis enclosed expression.
type EncloseExpr struct {
// EncloseExp represents a parenthesis enclosed expression.
type EncloseExp struct {
exp Expression
}

// Build converts an expression into a SQL fragment.
func (e *EncloseExpr) Build(db *DB, params Params) string {
func (e *EncloseExp) Build(db *DB, params Params) string {
str := e.exp.Build(db, params)

if str == "" {
Expand Down

0 comments on commit 8dbe67b

Please sign in to comment.