pauladb
Version:
O uso de bancos de dados não relacionais é simples, permitindo a manipulação direta dos dados de maneira fácil.
66 lines (49 loc) • 1.34 kB
Markdown
<h1 align="center">
🔐 PaulaDB.
</h1>
## 📋 Project
* 🔐 Application designed for intuitive use and direct manipulation. Simple to use and tailored for any level of expertise. <br>
<br>
## 💻 How to use
To clone and run this application you will need [Node.js](https://nodejs.org/en/download/).
<br>
In your command line:
```bash
# Install the module
$ npm install pauladb
```
## ⚙️ Config
```js
import PaulaDB from 'pauladb'
const db = new PaulaDB({ file: 'json.sqlite' }) // default .sqlitedata
```
## 📦 Method
The methods that are part of the class in the project:
| Method | Descrição |
| ------------------- | -------------------- |
| `set(key, value)` | **sets the value (key, value).** |
| `get(key)` | **retrieve the value of a key.** |
| `all()` | **returns the array of the table.** |
| `delete(key)` | **delete a value from the table.** |
###
## 🎩 Examples
* Import and define usage.
```js
import PaulaDB from 'pauladb'
const db = new PaulaDB()
```
```js
db.set('paula', 'db')
```
```js
db.get('paula')
```
```js
db.all()
```
```js
db.delete('paula')
```
---
Discord Don: [Contact me!](https://discord.com/users/828677274659586068) <br>
Github Don: [github.com/whoisdon](https://github.com/whoisdon)