arlet-db
Version:
A simple database manager for Node.js
16 lines (11 loc) • 491 B
Markdown
[🏠 Inicio](../README.md)
## updateTable
### Description:
The updateTable method updates the structure of an existing table by modifying its columns and optionally setting an auto-increment column.
### Usage:
```javascript
const db = new ArletDb('path/to/database', 'myDatabase');
db.updateTable('users', { name: 'string', age: 'number', email: 'string' }, 'age')
.then(table => console.log('Table updated:', table))
.catch(err => console.error('Error:', err));
```