arlet-db
Version:
A simple database manager for Node.js
18 lines (16 loc) • 423 B
Markdown
[🏠 Inicio](../README.md)
## count Method
The count method returns the total number of rows in a specified table.
### Syntax
````javascript
async count(tableName)
````
### Parameters
* tableName (String): The name of the table to count rows from.
### Returns
* The total number of rows in the table.
### Example
````javascript
const totalRows = await db.count('tableName');
console.log(totalRows);
````