diff --git a/readme.md b/readme.md index 7357701..2e2ee40 100644 --- a/readme.md +++ b/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)`