db_nrow: Count number of rows of a table.

Description Usage Arguments Value Details Examples

View source: R/RMariaDBHelper.R

Description

Run a database query that returns the number of rows in a table.

Usage

1
db_nrow(tablename, conf_file = "~/.db_conf.yml")

Arguments

tablename

(character) A table name to query for number of rows.

conf_file

(character) A file containing database connection parameters. (Default: "~/.db_conf.yml")

Value

(integer) The number of rows in a table.

Details

A SELECT COUNT query will return the number of rows in a table.

Examples

1
2
3
4
## Not run: 
db_nrow("iris")

## End(Not run)

deohs/RMariaDBHelper documentation built on Dec. 31, 2020, 11:17 p.m.