rws_read_table: Read a Table from a SQLite Database

View source: R/read.R

rws_read_tableR Documentation

Read a Table from a SQLite Database

Description

Read a Table from a SQLite Database

Usage

rws_read_table(x, meta = TRUE, conn)

Arguments

x

A string of the table name.

meta

A flag specifying whether to preserve meta data.

conn

A SQLiteConnection to a database.

Value

A data frame of the table.

Examples

conn <- rws_connect()
rws_write(rws_data, exists = FALSE, conn = conn)
rws_write(rws_data[c("date", "ordered")],
  x_name = "data2", exists = FALSE, conn = conn
)
rws_read_table("data2", conn = conn)
rws_disconnect(conn)

readwritesqlite documentation built on Oct. 17, 2022, 1:06 a.m.