Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 80e81972
authored
Oct 01, 2015
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci skip] docs(querying). Mention that ilike is pg only. Closes #4384
1 parent
7487701a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
docs/docs/models-usage.md
docs/docs/querying.md
docs/docs/models-usage.md
View file @
80e8197
...
...
@@ -181,8 +181,8 @@ Project.findAll({
$notIn
:
[
1
,
2
],
// NOT IN [1, 2]
$like
:
'%hat'
,
// LIKE '%hat'
$notLike
:
'%hat'
// NOT LIKE '%hat'
$iLike
:
'%hat'
// ILIKE '%hat' (case insensitive)
$notILike
:
'%hat'
// NOT ILIKE '%hat'
$iLike
:
'%hat'
// ILIKE '%hat' (case insensitive)
(PG only)
$notILike
:
'%hat'
// NOT ILIKE '%hat'
(PG only)
$overlap
:
[
1
,
2
]
// && [1, 2] (PG array overlap operator)
$contains
:
[
1
,
2
]
// @> [1, 2] (PG array contains operator)
$contained
:
[
1
,
2
]
// <@ [1, 2] (PG array contained by operator)
...
...
docs/docs/querying.md
View file @
80e8197
...
...
@@ -58,8 +58,8 @@ $in: [1, 2], // IN [1, 2]
$notIn
:
[
1
,
2
],
// NOT IN [1, 2]
$like
:
'%hat'
,
// LIKE '%hat'
$notLike
:
'%hat'
// NOT LIKE '%hat'
$iLike
:
'%hat'
// ILIKE '%hat' (case insensitive)
$notILike
:
'%hat'
// NOT ILIKE '%hat'
$iLike
:
'%hat'
// ILIKE '%hat' (case insensitive)
(PG only)
$notILike
:
'%hat'
// NOT ILIKE '%hat'
(PG only)
$like
:
{
$any
:
[
'cat'
,
'hat'
]}
// LIKE ANY ARRAY['cat', 'hat'] - also works for iLike and notLike
$overlap
:
[
1
,
2
]
// && [1, 2] (PG array overlap operator)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment