pauladb
v1.0.5
Published
O uso de bancos de dados não relacionais é simples, permitindo a manipulação direta dos dados de maneira fácil.
Downloads
12
Maintainers
Readme
📋 Project
- 🔐 Application designed for intuitive use and direct manipulation. Simple to use and tailored for any level of expertise.
💻 How to use
To clone and run this application you will need Node.js.
# Install the module
$ npm install pauladb
⚙️ Config
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.
import PaulaDB from 'pauladb'
const db = new PaulaDB()
db.set('paula', 'db')
db.get('paula')
db.all()
db.delete('paula')
Discord Don: Contact me! Github Don: github.com/whoisdon