Learn R Programming

RAthena (version 2.6.1)

dbHasCompleted: Completion status

Description

This method returns if the query has completed.

Usage

# S4 method for AthenaResult
dbHasCompleted(res, ...)

Value

dbHasCompleted() returns a logical scalar. TRUE if the query has completed, FALSE otherwise.

Arguments

res

An object inheriting from DBIResult.

...

Other arguments passed on to methods.

See Also

Examples

Run this code
if (FALSE) {
# Note:
# - Require AWS Account to run below example.
# - Different connection methods can be used please see `RAthena::dbConnect` documnentation

library(DBI)

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

# Check if query has completed
res <- dbSendQuery(con, "show databases")
dbHasCompleted(res)

dbClearResult(res)

# Disconnect from Athena
dbDisconnect(con)
}

Run the code above in your browser using DataLab