Skip to content

Commit

Permalink
Add documentation whereLike/whereILike knex#4779 (knex#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierCavadenti committed Oct 31, 2021
1 parent a383af3 commit 074903f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/Sidebar.jsx
Expand Up @@ -69,6 +69,8 @@ export default class Sidebar extends Component {
<li>&nbsp;&nbsp;– <a href="#Builder-whereBetween">whereBetween</a></li>
<li>&nbsp;&nbsp;– <a href="#Builder-whereNotBetween">whereNotBetween</a></li>
<li>&nbsp;&nbsp;– <a href="#Builder-whereRaw">whereRaw</a></li>
<li>&nbsp;&nbsp;– <a href="#Builder-whereLike">whereLike</a></li>
<li>&nbsp;&nbsp;– <a href="#Builder-whereILike">whereILike</a></li>

<li><b><a href="#Builder-join">Join Methods:</a></b></li>
<li>&nbsp;&nbsp;– <a href="#Builder-join">join</a></li>
Expand Down
28 changes: 28 additions & 0 deletions sections/builder.js
Expand Up @@ -735,6 +735,34 @@ export default [
}
]
},
{
type: "method",
method: "whereLike",
example: ".whereLike(column, string|builder|raw)",
description: "Adds a where clause with case-sensitive substring comparison on a given column with a given value.",
children: [
{
type: "runnable",
content: `
knex('users').whereLike('email', '%mail%')
`
}
]
},
{
type: "method",
method: "whereILike",
example: ".whereILike(column, string|builder|raw)",
description: "Adds a where clause with case-insensitive substring comparison on a given column with a given value.",
children: [
{
type: "runnable",
content: `
knex('users').whereILike('email', '%mail%')
`
}
]
},
{
type: "heading",
size: "md",
Expand Down

0 comments on commit 074903f

Please sign in to comment.