Learn R Programming

motherduck (version 0.2.0)

validate_md_connection_status: Validate Mother Duck Connection Status

Description

Validates if you are successfully connected to motherduck database and will return either a logical value or print a message

Usage

validate_md_connection_status(.con, return_type = "msg")

Value

logical value or warning message

Arguments

.con

A valid DBI connection (DuckDB / MotherDuck).

return_type

return message or logical value of connection status

See Also

connect_to_motherduck()

Examples

Run this code
if (FALSE) {
con <- DBI::dbConnect(duckdb::duckdb())
validate_md_connection_status(con)
}

Run the code above in your browser using DataLab