Learn R Programming

motherduck (version 0.2.0)

validate_con: Validate connection is DuckDB

Description

Validates that your connection object is a DuckDB connection

Usage

validate_con(.con)

Value

logical value or error message

Arguments

.con

A valid DBI connection (DuckDB / MotherDuck).

Examples

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

Run the code above in your browser using DataLab