Skip to content

Commit

Permalink
feat: add useful comment at sqlla.Operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mackee committed Jul 10, 2024
1 parent 413a916 commit 8ee9a6a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import (
)

var (
OpEqual Operator = "="
OpGreater Operator = ">"
OpGreaterEqual Operator = ">="
OpLess Operator = "<"
OpLessEqual Operator = "<="
OpNot Operator = "<>"
OpIs Operator = "IS"
OpEqual Operator = "=" // Operator for equal. Column(value, sqlla.OpEqual) same as Column = value
OpGreater Operator = ">" // Operator for greater. Column(value, sqlla.OpGreater) same as Column > value
OpGreaterEqual Operator = ">=" // Operator for greater equal. Column(value, sqlla.OpGreaterEqual) same as Column >= value
OpLess Operator = "<" // Operator for less. Column(value, sqlla.OpLess) same as Column < value
OpLessEqual Operator = "<=" // Operator for less equal. Column(value, sqlla.OpLessEqual) same as Column <= value
OpNot Operator = "<>" // Operator for not equal. Column(value, sqlla.OpNot) same as Column <> value
OpIs Operator = "IS" // Operator for is. Column(value, sqlla.OpIs) same as Column IS value
opIsNull Operator = "IS NULL"
opIsNotNull Operator = "IS NOT NULL"
OpLike Operator = "LIKE"
OpLike Operator = "LIKE" // Operator for like. Column(value, sqlla.OpLike) same as Column LIKE value
)

type Operator string
Expand Down

0 comments on commit 8ee9a6a

Please sign in to comment.