dbStatistics: Show AWS Athena Statistics

dbStatisticsR Documentation

Show AWS Athena Statistics

Description

Returns AWS Athena Statistics from execute queries dbSendQuery

Usage

dbStatistics(res, ...)

## S4 method for signature 'AthenaResult'
dbStatistics(res, ...)

Arguments

res

An object inheriting from DBIResult.

...

Other arguments passed on to methods.

Value

dbStatistics() returns list containing Athena Statistics return from paws.

Examples

## Not run: 
# Note:
# - Require AWS Account to run below example.
# - Different connection methods can be used please see `RAthena::dbConnect` documnentation

library(DBI)
library(noctua)

# Demo connection to Athena using profile name
con <- dbConnect(noctua::athena())

res <- dbSendQuery(con, "show databases")
dbStatistics(res)

# Clean up
dbClearResult(res)

## End(Not run)

noctua documentation built on Aug. 9, 2023, 1:07 a.m.