db_size: Function to get the size of a database.

View source: R/db_size.R

db_sizeR Documentation

Function to get the size of a database.

Description

For SQLite databases, the file size is returned, for PostgreSQL databases, the 'pg_database' table is queried, and for MySQL database 'information_schema.tables' is queried.

Usage

db_size(con, unit = "mb")

Arguments

con

Database connection.

unit

Measurement unit. Default is "mb" for megabytes.

Value

Numeric vector.

Author(s)

Stuart K. Grange


skgrange/databaser documentation built on April 21, 2024, 6:30 a.m.