UNPKG

arlet-db

Version:

A simple database manager for Node.js

16 lines (11 loc) 509 B
[🏠 Inicio](../README.md) ## createTable ### Description: The createTable method creates a new table with specified columns. The columns must be defined as either string or number. An optional auto-increment column can be specified. ### Usage: ```javascript const db = new ArletDb('path/to/database', 'myDatabase'); db.createTable('users', { name: 'string', age: 'number' }, 'age') .then(table => console.log('Table created:', table)) .catch(err => console.error('Error:', err)); ```