From baff76e50d61608a717a069e50cd8695e7c79f97 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sat, 18 Feb 2023 15:45:15 +0100 Subject: [PATCH] updated readme.md --- readme.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 7f0eba9..47aceb6 100644 --- a/readme.md +++ b/readme.md @@ -12,7 +12,7 @@ Features: - [x] create Schema - [x] remove unused Schema - [x] joins -- [ ] table alias +- [x] table alias - [ ] change Schema - [ ] Key-Value Store Shortcut - [ ] Views @@ -104,7 +104,7 @@ let res = await select([Table2.AttrName2], Table1) .query(db); ``` -Joins: +_Joins_: ```javascript 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) +_Aliases_: +```javascript +const alias1 = TableA.createAlias("alias1"); +//alias1 can be used like a Table in select Statements. +``` + #### Insert: ```javascript import { select } from "dblang"