Skip to content

Commit abe6eee

Browse files
committed
feat: added delAll usability
1 parent 38014af commit abe6eee

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,19 @@ Enough for updating data, the next is to learn how to delete some records from t
159159
}())
160160
```
161161

162+
163+
We can't finish without talking about how to delete all data from db in case you want . here are code example
164+
165+
```ts
166+
import { delAll } from '@ndzhwr/json-base'
167+
168+
(async function(){
169+
await delAll();
170+
}())
171+
172+
```
173+
174+
162175
🎉 Congrats! Now we've finished creating our CRUD operations on the models and I hope now you're able to consume the API and make your life easier.
163176
*For more, jsdoc was used , hover on your imported function to see the documentation*
164177

0 commit comments

Comments
 (0)