Skip to content

Commit

Permalink
fix links and code indentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vnikolova committed Aug 28, 2024
1 parent f53169f commit b92037a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
it[director] = "JJ Abrams"
}

// on conflict, ONLY column [director] is updated with value from the lambda block
// on conflict, ONLY column [director] is updated with value from the lambda block
StarWarsFilms.upsert(
onUpdateExclude = StarWarsFilms.columns - setOf(StarWarsFilms.director)
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ val movies = StarWarsFilm.all()
val movies = StarWarsFilm.find { StarWarsFilms.sequelId eq 8 }
val movie = StarWarsFilm.findById(5)
```
<tip>For a list of available predicates, see <a href="DSL-CRUD-operations.topic">DSL Where expression</a>.</tip>
<tip>
For a list of available predicates, see
<a href="DSL-Querying-data.topic" anchor="where-expression">DSL Where expression</a>.
</tip>

Read a value from a property similar to any property in a Kotlin class:
```kotlin
Expand Down
2 changes: 1 addition & 1 deletion documentation-website/Writerside/topics/SQL-Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ val nameLengths = FooTable.select(nameLength).map { it[nameLength] }
```

## Aggregating functions
These functions should be used in queries with [groupBy](DSL-CRUD-operations.topic).
These functions should be used in queries with [groupBy](DSL-Querying-data.topic#group-by).
### Min/Max/Average
Returns minimum/maximum/average value and can be applied to any comparable expression:
```kotlin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@

<code-block lang="kotlin">
val indexName = index(&quot;indexName&quot;, false, *arrayOf(name, population))
// or inside an init block within the table object
// or inside an init block within the table object
init {
index(&quot;indexName&quot;, isUnique = false, name, population)
}
Expand Down

0 comments on commit b92037a

Please sign in to comment.