Skip to content

Commit

Permalink
Update .returning documentation to include SQLite support
Browse files Browse the repository at this point in the history
This documentation update corresponds to the changes implemented in [knex/knex pull request #5285](knex/knex#5285).
  • Loading branch information
simonplend committed Aug 3, 2022
1 parent 6859465 commit 4b90043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/query-builder.md
Expand Up @@ -1014,7 +1014,7 @@ knex('accounts')
**.returning(column, [options])**
**.returning([column1, column2, ...], [options])**
Utilized by PostgreSQL, MSSQL, and Oracle databases, the returning method specifies which column should be returned by the insert, update and delete methods. Passed column parameter may be a string or an array of strings. The SQL result be reported as an array of objects, each containing a single property for each of the specified columns. The returning method is not supported on Amazon Redshift.
Utilized by PostgreSQL, MSSQL, SQLite, and Oracle databases, the returning method specifies which column should be returned by the insert, update and delete methods. Passed column parameter may be a string or an array of strings. The SQL result be reported as an array of objects, each containing a single property for each of the specified columns. The returning method is not supported on Amazon Redshift.
```js
// Returns [ { id: 1 } ]
Expand Down

0 comments on commit 4b90043

Please sign in to comment.