Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Updated changelog and readme [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymarois committed Feb 24, 2019
1 parent 9cd6ccf commit b64f8af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Change Log
### 02/24/2019 - 1.0.23
* Merged [Pull Request](https://github.com/filebase/Filebase/pull/49) Added support for order by multiple columns
* Merged [Pull Request](https://github.com/filebase/Filebase/pull/46) Added ability to query document ids (internal id)
* Added ability to use query `delete()` on all items that match the query (making the custom filter optional)

### 02/23/2019 - 1.0.22
* Merged [Pull Request](https://github.com/filebase/Filebase/pull/47) for deleting items with a custom filter. (this adds the `delete()` method on queries.)
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,11 @@ $users = $db->select('name,age')->where('email','LIKE','@gmail.com')->results();
// Instead of returning users, how about just count how many users are found.
$totalUsers = $db->where('email','LIKE','@gmail.com')->count();

// Delete using custom filters (this will act like a bulk delete)

// You can delete all documents that match the query (BULK DELETE)
$db->where('name','LIKE','john')->delete();

// Delete all items that match query and match custom filter
$db->where('name','LIKE','john')->delete(function($item){
return ($item->name == 'John' && $item->email == '[email protected]');
});
Expand Down

0 comments on commit b64f8af

Please sign in to comment.