db_ncol: Count number of columns of a table.

Description Usage Arguments Value Details Examples

View source: R/RMariaDBHelper.R

Description

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

Usage

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

Arguments

tablename

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

conf_file

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

Value

(integer) The number of columns in a table.

Details

A SQL query will return a dataframe containing the number of columns.

Examples

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

## End(Not run)

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