added all joins to readme.md
This commit is contained in:
parent
6901eb91b9
commit
a80819b7b8
1 changed files with 19 additions and 0 deletions
19
readme.md
19
readme.md
|
@ -122,6 +122,7 @@ TableB.addAttribute("B1", INT, {
|
|||
let res = await select([TableA.A1, TableB.B1], innerJoinOn(eq(TableA.A1, Tableb.B1)))
|
||||
.query(db);
|
||||
```
|
||||
See: [Joins](#joins)
|
||||
|
||||
#### Insert:
|
||||
```javascript
|
||||
|
@ -228,6 +229,24 @@ StringModifier:
|
|||
|
||||
(v\* = string, number, boolean, null, Modifier, Aggregation, select Query, Attribute)
|
||||
|
||||
#### Joins
|
||||
|
||||
- `crossJoin(t1, t2, ...)`
|
||||
- `naturalJoin(t1, t2, ...)`
|
||||
- `leftNaturalJoin(t1, t2, ...)`
|
||||
- `rightNaturalJoin(t1, t2, ...)`
|
||||
- `fullNaturalJoin(t1, t2, ...)`
|
||||
- `innerJoinUsing(t1, t2, a1, a2, ...)`
|
||||
- `leftJoinUsing(t1, t2, a1, a2, ...)`
|
||||
- `rightJoinUsing(t1, t2, a1, a2, ...)`
|
||||
- `fullJoinUsing(t1, t2, a1, a2, ...)`
|
||||
- `innerJoinOn(t1, t2, b)`
|
||||
- `leftJoinOn(t1, t2, b)`
|
||||
- `rightJoinOn(t1, t2, b)`
|
||||
- `fullJoinOn(t1, t2, b)`
|
||||
|
||||
(t\* = Table or Join; a\* = Attributes; b = Boolean Modifier)
|
||||
|
||||
#### Aggregations
|
||||
- `count(a)`
|
||||
- `sum(a)`
|
||||
|
|
Loading…
Reference in a new issue