Skip to content

Commit

Permalink
Add documentation fromRaw knex#4781 (knex#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierCavadenti committed Oct 29, 2021
1 parent 7461ffb commit a383af3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/Sidebar.jsx
Expand Up @@ -52,6 +52,7 @@ export default class Sidebar extends Component {
<li><a href="#Builder-as">as</a></li>
<li><a href="#Builder-column">column</a></li>
<li><a href="#Builder-from">from</a></li>
<li><a href="#Builder-fromRaw">fromRaw</a></li>
<li><a href="#Builder-with">with</a></li>
<li><a href="#Builder-withRecursive">withRecursive</a></li>
<li><a href="#Builder-withSchema">withSchema</a></li>
Expand Down
14 changes: 14 additions & 0 deletions sections/builder.js
Expand Up @@ -280,6 +280,20 @@ export default [
}
]
},
{
type: "method",
method: "fromRaw",
example: ".fromRaw(sql, [bindings])",
description: "",
children: [
{
type: "runnable",
content: `
knex.select('*').fromRaw('(select * from "users" where "age" > ?)', '18')
`
}
]
},
{
type: "method",
method: "with",
Expand Down

0 comments on commit a383af3

Please sign in to comment.