updated readme.md
This commit is contained in:
parent
d342aab539
commit
baff76e50d
1 changed files with 8 additions and 2 deletions
10
readme.md
10
readme.md
|
@ -12,7 +12,7 @@ Features:
|
||||||
- [x] create Schema
|
- [x] create Schema
|
||||||
- [x] remove unused Schema
|
- [x] remove unused Schema
|
||||||
- [x] joins
|
- [x] joins
|
||||||
- [ ] table alias
|
- [x] table alias
|
||||||
- [ ] change Schema
|
- [ ] change Schema
|
||||||
- [ ] Key-Value Store Shortcut
|
- [ ] Key-Value Store Shortcut
|
||||||
- [ ] Views
|
- [ ] Views
|
||||||
|
@ -104,7 +104,7 @@ let res = await select([Table2.AttrName2], Table1)
|
||||||
.query(db);
|
.query(db);
|
||||||
```
|
```
|
||||||
|
|
||||||
Joins:
|
_Joins_:
|
||||||
```javascript
|
```javascript
|
||||||
import { INT, onAction } from "dblang"
|
import { INT, onAction } from "dblang"
|
||||||
|
|
||||||
|
@ -125,6 +125,12 @@ let res = await select([TableA.A1, TableB.B1], innerJoinOn(eq(TableA.A1, Tableb.
|
||||||
```
|
```
|
||||||
See: [Joins](#joins)
|
See: [Joins](#joins)
|
||||||
|
|
||||||
|
_Aliases_:
|
||||||
|
```javascript
|
||||||
|
const alias1 = TableA.createAlias("alias1");
|
||||||
|
//alias1 can be used like a Table in select Statements.
|
||||||
|
```
|
||||||
|
|
||||||
#### Insert:
|
#### Insert:
|
||||||
```javascript
|
```javascript
|
||||||
import { select } from "dblang"
|
import { select } from "dblang"
|
||||||
|
|
Loading…
Reference in a new issue