mirror of
https://github.com/jlengrand/exposed-wiki.git
synced 2026-03-10 08:11:18 +00:00
Updated DSL (markdown)
This commit is contained in:
committed by
Andrey.Tarashevskiy
parent
cca4d3e075
commit
fca702df83
7
DSL.md
7
DSL.md
@@ -181,6 +181,13 @@ Join to count how many players play in each movie:
|
||||
```
|
||||
* In case there is a foreign key it is possible to replace `select{}` with `selectAll()`
|
||||
|
||||
Another example using the full syntax:
|
||||
```kotlin
|
||||
Players.join(StarWarsFilms, JoinType.INNER, additionalConstraint = {StarWarsFilms.sequelId eq Players.sequelId})
|
||||
.slice(Players.name.count(), StarWarsFilms.name)
|
||||
.groupBy(StarWarsFilms.name)
|
||||
```
|
||||
|
||||
## Alias
|
||||
Aliases allow preventing ambiguity between field names and table names.
|
||||
Use the aliased var instead of original one:
|
||||
|
||||
Reference in New Issue
Block a user