src_dbi: Database src

View source: R/src_dbi.R

src_dbiR Documentation

Database src

Description

[Superseded]

Since can generate a tbl() directly from a DBI connection we no longer recommend using src_dbi().

Usage

src_dbi(con, auto_disconnect = FALSE)

Arguments

con

An object that inherits from DBI::DBIConnection, typically generated by DBI::dbConnect

auto_disconnect

Should the connection be automatically closed when the src is deleted? Set to TRUE if you initialize the connection the call to src_dbi(). Pass NA to auto-disconnect but print a message when this happens.

Value

An S3 object with class src_dbi, src_sql, src.


dbplyr documentation built on May 29, 2024, 6:19 a.m.