added all joins to readme.md
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
jusax23 2023-02-15 14:52:55 +01:00
parent 6901eb91b9
commit a80819b7b8

View file

@ -122,6 +122,7 @@ TableB.addAttribute("B1", INT, {
let res = await select([TableA.A1, TableB.B1], innerJoinOn(eq(TableA.A1, Tableb.B1))) let res = await select([TableA.A1, TableB.B1], innerJoinOn(eq(TableA.A1, Tableb.B1)))
.query(db); .query(db);
``` ```
See: [Joins](#joins)
#### Insert: #### Insert:
```javascript ```javascript
@ -228,6 +229,24 @@ StringModifier:
(v\* = string, number, boolean, null, Modifier, Aggregation, select Query, Attribute) (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 #### Aggregations
- `count(a)` - `count(a)`
- `sum(a)` - `sum(a)`