arlet-db
Version:
A simple database manager for Node.js
16 lines (12 loc) • 387 B
Markdown
[🏠 Inicio](../README.md)
The getById method retrieves a row of data from a specified table based on its id_arlet.
````javascript
Copiar código
const db = new ArletDb('path/to/database', 'myDatabase');
db.getById('users', 1)
.then(data => console.log('Data by ID:', data))
.catch(err => console.error('Error:', err));`
````