Skip to content

Commit

Permalink
Merge pull request #1226 from eliecharra/fix/wherein_doc
Browse files Browse the repository at this point in the history
Fix doc for the WhereIn clause
  • Loading branch information
stephenafamo committed Dec 14, 2022
2 parents 0cf73d7 + 6792ea9 commit 91c4f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -1186,8 +1186,8 @@ Where(
)

// WHERE IN clause building
WhereIn("name, age in ?", "John", 24, "Tim", 33) // Generates: WHERE ("name","age") IN (($1,$2),($3,$4))
WhereIn(fmt.Sprintf("%s, %s in ?", models.PilotColumns.Name, models.PilotColumns.Age, "John", 24, "Tim", 33))
WhereIn("(name, age) in ?", "John", 24, "Tim", 33) // Generates: WHERE ("name","age") IN (($1,$2),($3,$4))
WhereIn(fmt.Sprintf("(%s, %s) in ?", models.PilotColumns.Name, models.PilotColumns.Age), "John", 24, "Tim", 33)
AndIn("weight in ?", 84)
AndIn(models.PilotColumns.Weight + " in ?", 84)
OrIn("height in ?", 183, 177, 204)
Expand Down

0 comments on commit 91c4f33

Please sign in to comment.