UNPKG

arlet-db

Version:

A simple database manager for Node.js

16 lines (11 loc) 429 B
[🏠 Inicio](../README.md) ## query ### Description: The query method retrieves data from a specified table based on the provided criteria and options. ### Usage: ````javascript const db = new ArletDb('path/to/database', 'myDatabase'); db.query('users', { age: 30 }, { sort: ['name', 'asc'], limit: 10 }) .then(data => console.log('Query result:', data)) .catch(err => console.error('Error:', err)); ````