Skip to content

Commit 43929d4

Browse files
authored
Merge pull request #29 from ArtskydJ/patch-1
2 parents 9e1715a + f5cf331 commit 43929d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

readme.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ Every clause method returns a new immutable `q` query object.
125125
- `q.from(tablename | subquery, alias)`
126126
- `q.join(tablename | subquery, [alias], on_expression)`
127127
- `q.leftJoin(tablename | subquery, [alias], on_expression)`
128-
- `q.where(expression, [comparator, [value]])`
129-
- `q.orWhere(expression, [comparator, [value]])`
128+
- `q.where(expression, [[comparator], value])`
129+
- `q.orWhere(expression, [[comparator], value])`
130130
- `q.whereLike(expression, value)`
131131
- `q.orWhereLike(expression, value)`
132-
- `q.having(expression, [comparator, [value]])`
133-
- `q.orHaving(expression, [comparator, [value]])`
132+
- `q.having(expression, [[comparator], value])`
133+
- `q.orHaving(expression, [[comparator], value])`
134134
- `q.groupBy(expression1, expression2, etc)`
135135
- `q.orderBy(expression1, expression2, etc)`
136136
- `q.limit(offset)`
@@ -139,7 +139,7 @@ Every clause method returns a new immutable `q` query object.
139139

140140
`expression` strings are inserted without being parameterized, but you can also pass in [tagged template strings](#tagged-template-strings) to do anything special.
141141

142-
All `value`s are automatically parameterized. If a `value` is `NULL` it will be automatically compared with `IS`, and if it's an array it will be automatically compared with `IN()`:
142+
All `value`s will be automatically escaped. If a `value` is `NULL` it will be automatically compared with `IS`, and if it's an array it will be automatically compared with `IN()`. Otherwise, it will be compared with `=`.
143143

144144
```js
145145
const whereInResult = q.select('fancy')

0 commit comments

Comments
 (0)