Skip to content

Commit

Permalink
update and delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldoni committed Nov 6, 2018
1 parent 764a4f7 commit d179a55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ PHP SQL query builder using PDO
* Allows you to perform complex queries with little code
- [select](https://github.com/fgoldoni/QueryBuilder#select)
- [insert](https://github.com/fgoldoni/QueryBuilder#insert)
- update
- delete
- [update](https://github.com/fgoldoni/QueryBuilder#update)
- [delete](https://github.com/fgoldoni/QueryBuilder#delete)
- [where](https://github.com/fgoldoni/QueryBuilder#where)
- [params](https://github.com/fgoldoni/QueryBuilder#params)
- [count](https://github.com/fgoldoni/QueryBuilder#count)
Expand Down Expand Up @@ -177,7 +177,7 @@ $query = (new Query($this->pdo))
```php
$query = (new Query($this->pdo))->delete('users', 2);

$query1 = (new Query($this->pdo))->delete('users')->where('id = :id')->params(['id' => 12])->execute();
$query1 = (new Query($this->pdo))->delete('users')->where('id = :id')->params(['id' => 12]);
```
build the query below
```
Expand Down

0 comments on commit d179a55

Please sign in to comment.