db_connection: Wrap a DBI connection for use by termr SQL widgets

View source: R/sql.R

db_connectionR Documentation

Wrap a DBI connection for use by termr SQL widgets

Description

Wrap a DBI connection for use by termr SQL widgets

Usage

db_connection(con, name = NULL, owned = FALSE)

Arguments

con

A DBI connection.

name

Optional connection label.

owned

Disconnect this connection when disconnect() is called? Defaults to FALSE for externally managed connections.

Value

A lightweight connection wrapper with query(), execute(), is_valid(), and disconnect() methods.


termr documentation built on Oct. 21, 2026, 5:13 p.m.