Skip to content

Commit

Permalink
and even betterer example
Browse files Browse the repository at this point in the history
  • Loading branch information
koskimas committed Sep 9, 2023
1 parent 580835e commit b3872cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions site/docs/examples/INSERT/0010-single-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
6 changes: 3 additions & 3 deletions src/query-builder/insert-query-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ export class InsertQueryBuilder<DB, TB extends keyof DB, O>
* })
* .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)
Expand Down

1 comment on commit b3872cb

@vercel
Copy link

@vercel vercel bot commented on b3872cb Sep 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kysely – ./

kysely-git-master-kysely-team.vercel.app
kysely-kysely-team.vercel.app
kysely.dev
www.kysely.dev

Please sign in to comment.