arlet-db
Version:
A simple database manager for Node.js
15 lines (11 loc) • 411 B
Markdown
[🏠 Inicio](../README.md)
## update
### Description:
The update method updates rows of data in a specified table based on the provided criteria.
### Usage:
````javascript
const db = new ArletDb('path/to/database', 'myDatabase');
db.update('users', { age: 31 }, { name: 'John Doe' })
.then(result => console.log('Data updated:', result))
.catch(err => console.error('Error:', err));
````