arlet-db
Version:
A simple database manager for Node.js
15 lines (11 loc) • 423 B
Markdown
[🏠 Inicio](../README.md)
## insert
### Description:
The insert method inserts a new row of data into a specified table. The data must match the table's schema.
### Usage:
````javascript
const db = new ArletDb('path/to/database', 'myDatabase');
db.insert('users', { name: 'John Doe', age: 30 })
.then(result => console.log('Data inserted:', result))
.catch(err => console.error('Error:', err));
````