Skip to content

Commit

Permalink
Update .returning documentation to include SQLite support (#438)
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 4, 2022
1 parent 6859465 commit d60d82c
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 d60d82c

Please sign in to comment.