From b3872cb79998982855ad65c39ce19cae0bc00e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sami=20Koskim=C3=A4ki?= Date: Sat, 9 Sep 2023 11:28:38 +0300 Subject: [PATCH] and even betterer example --- site/docs/examples/INSERT/0010-single-row.js | 6 +++--- src/query-builder/insert-query-builder.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/site/docs/examples/INSERT/0010-single-row.js b/site/docs/examples/INSERT/0010-single-row.js index e16181fd6..843bff7a1 100644 --- a/site/docs/examples/INSERT/0010-single-row.js +++ b/site/docs/examples/INSERT/0010-single-row.js @@ -7,9 +7,9 @@ export const singleRow = `const result = await db }) .executeTakeFirst() -// The \`insertId\` is only available on dialects -// that automatically return the id of the inserted -// row such as MySQL and SQLite. On postgres, for example, +// \`insertId\` is only available on dialects that +// automatically return the id of the inserted row +// such as MySQL and SQLite. On PostgreSQL, for example, // you need to add a \`returning\` clause to the query to // get anything out. See the "returning data" example. console.log(result.insertId)` \ No newline at end of file diff --git a/src/query-builder/insert-query-builder.ts b/src/query-builder/insert-query-builder.ts index 283c21874..02b43d1f9 100644 --- a/src/query-builder/insert-query-builder.ts +++ b/src/query-builder/insert-query-builder.ts @@ -111,9 +111,9 @@ export class InsertQueryBuilder * }) * .executeTakeFirst() * - * // The `insertId` is only available on dialects - * // that automatically return the id of the inserted - * // row such as MySQL and SQLite. On postgres, for example, + * // `insertId` is only available on dialects that + * // automatically return the id of the inserted row + * // such as MySQL and SQLite. On PostgreSQL, for example, * // you need to add a `returning` clause to the query to * // get anything out. See the "returning data" example. * console.log(result.insertId)