arlet-db
Version:
A simple database manager for Node.js
16 lines (11 loc) • 409 B
Markdown
[🏠 Inicio](../README.md)
## clearTable
### Description:
The clearTable method clears all data from a specified table and optionally resets the auto-increment column.
### Usage:
````javascript
const db = new ArletDb('path/to/database', 'myDatabase');
db.clearTable('users', 'age')
.then(table => console.log('Table cleared:', table))
.catch(err => console.error('Error:', err));
````