Skip to content

Commit

Permalink
menambah docs join
Browse files Browse the repository at this point in the history
  • Loading branch information
febrihidayan committed May 26, 2020
1 parent 6ba5cab commit 8bc0b16
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ $db = new \HilyahTech\QueryBuilder\DB($config);
* [select functions (min, max, count, avg, sum)](#select-functions-min-max-count-avg-sum)
* [table](#table)
* [get and first](#get-and-first)
* [join](#join)
* [where](#where)
* [where in](#where-in)
* [between](#between)
Expand Down Expand Up @@ -129,6 +130,27 @@ $db->table('users')->first();
# sql: "SELECT * FROM users LIMIT 1"
```

### join
Ada 7 Method join

* join()
* leftJoin()
* rightJoin()
* leftOuterJoin()
* rightOuterJoin()
* fullOuterJoin()

```php
$db->table('test')->join('check', 'test.id', 'check.id')->get();
# sql: "SELECT * FROM test JOIN check ON test.id = check.id"

$db->table('test')->leftJoin('check', 'test.id', 'check.id')->get();
# sql: "SELECT * FROM test LEFT JOIN check ON test.id = check.id"

$db->table('test')->fullOuterJoin('check', 'test.id', '=', 'check.id')->get();
# sql: "SELECT * FROM test FULL OUTER JOIN check ON test.id = check.id"
```

### where
```php
$db->table('users')->where(1)->get();
Expand Down

0 comments on commit 8bc0b16

Please sign in to comment.