UNPKG

arlet-db

Version:

A simple database manager for Node.js

16 lines (11 loc) 389 B
[🏠 Inicio](../README.md) ## getTableSchema ### Description: The getTableSchema method retrieves the schema (column definitions) of a specified table. ### Usage: ```javascript const db = new ArletDb('path/to/database', 'myDatabase'); db.getTableSchema('users') .then(schema => console.log('Table schema:', schema)) .catch(err => console.error('Error:', err)); ```