klauz-db 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -586,6 +586,30 @@ console.log("collection.findAll(): ", collection.findAll());
|
|
|
586
586
|
```
|
|
587
587
|
<br>
|
|
588
588
|
|
|
589
|
+
### drop
|
|
590
|
+
Deleta o arquivo .json criado para a Collection.
|
|
591
|
+
|
|
592
|
+
#### Syntax
|
|
593
|
+
```js
|
|
594
|
+
collection.drop()
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
#### Retorno
|
|
598
|
+
Não possui retorno;
|
|
599
|
+
|
|
600
|
+
#### Exemplo
|
|
601
|
+
```js
|
|
602
|
+
// Criando Collection
|
|
603
|
+
const kz = new KlauzDB({
|
|
604
|
+
path: '.'
|
|
605
|
+
})
|
|
606
|
+
|
|
607
|
+
const collection = kz.createCollection('teste') // arquivo .json criado
|
|
608
|
+
|
|
609
|
+
collection.drop() // arquivo .json deletado
|
|
610
|
+
```
|
|
611
|
+
<br>
|
|
612
|
+
|
|
589
613
|
## ✒️ Autores
|
|
590
614
|
|
|
591
615
|
* **Desenvolvedor** - *Trabalho & Documentação* - [Victor Nikolaus](https://github.com/vnikolaus)
|