db_direct_read: Function to connect and read database table directly.

View source: R/db_direct_insert.R

db_direct_readR Documentation

Function to connect and read database table directly.

Description

db_direct_read has been designed so a database can be connected to, data read, data returned, and then disconnected with a single function call.

Usage

db_direct_read(file, database, table)

Arguments

file

JSON file or string containing database connection details. For SQLite databases, use the database's file path. See db_connect for more information.

database

The name of the database within file to use to create a database connection to. If only one entry is in file, this argument is not needed and will be ignored if used.

table

Table in, or to be created in con.

Value

Data frame.

Author(s)

Stuart K. Grange

See Also

db_connect, db_insert, db_direct_insert


skgrange/databaser documentation built on Sept. 26, 2024, 8:30 p.m.