From 4b90043a5bb37bb2ec3f94cd1592127c99146a7d Mon Sep 17 00:00:00 2001 From: Simon Plenderleith Date: Wed, 3 Aug 2022 18:44:10 +0100 Subject: [PATCH] Update .returning documentation to include SQLite support This documentation update corresponds to the changes implemented in [knex/knex pull request #5285](https://github.com/knex/knex/pull/5285). --- src/guide/query-builder.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/query-builder.md b/src/guide/query-builder.md index 45b41b55..37bc82a6 100644 --- a/src/guide/query-builder.md +++ b/src/guide/query-builder.md @@ -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 } ]