Skip to content

Commit

Permalink
Resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vnikolova committed Dec 9, 2024
1 parent 9bd9290 commit caf827d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class DeleteExamples {

fun joinDelete() {
/*
MERGE INTO ACTORS USING STAR_WARS_FILMS_TABLE
ON STAR_WARS_FILMS_TABLE.ID = ACTORS.SEQUEL_ID
WHEN MATCHED AND ACTORS.SEQUEL_ID > 2
THEN DELETE
DELETE actors
FROM star_wars_films_table INNER JOIN actors
ON star_wars_films_table.id = actors.sequel_id
WHERE actors.sequel_id > 2
*/

StarWarsFilmsIntIdTable.insertIgnore {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@
src="exposed-dsl/src/main/kotlin/org/example/examples/CreateExamples.kt"
include-lines="49-60"/>
<p>
If <code>insert</code> was used instead of <code>insertIgnore</code>, this would throw a constraint violation exception
Instead, this new row is ignored and discarded.
If <code>insert</code> was used instead of <code>insertIgnore</code>, this would throw a constraint
violation exception. Instead, this new row is ignored and discarded.
</p>
</chapter>

<chapter id="insertIgnoreAndGetId">
<title><code>insertIgnoreAndGetId</code></title>
<tldr>
<p>Supported on: MySQL, PostgreSQL, and SQLite</p>
<p>Table types: <code>IntIdTable()</code> </p>
<p>Supported on: MySQL, MariaDB, PostgreSQL, and SQLite</p>
<p>Table types: <code>IdTable()</code> </p>
</tldr>
<p>
<a href="https://jetbrains.github.io/Exposed/api/exposed-core/org.jetbrains.exposed.sql/insert-ignore-and-get-id.html">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,6 @@
include-lines="4-6,9,18-39"/>
<code-block lang="kotlin"
src="exposed-dsl/src/main/kotlin/org/example/examples/CustomSelectExamples.kt"
include-lines="56-58"/>
include-lines="43-48,56-58"/>
</chapter>
</topic>

0 comments on commit caf827d

Please sign in to comment.