sqliteListFields: List fields available in database table

Description Usage Arguments Value Examples

View source: R/rsqlite.R

Description

List fields available in database table

Usage

1

Arguments

table

Name of the table to inspect

file

Path to the SQLite database file

...

Other parameters passed on to methods.

Value

A character vector of field names.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Setup ----

library(RSQLite)

database_file <- tempfile()
conn <- dbConnect(SQLite(), dbname = database_file)
dbWriteTable(conn, "mtcars", mtcars[1:5, ])
dbWriteTable(conn, "USArrests", USArrests[1:5, ])
dbDisconnect(conn)

# Example ----

sqliteListFields("mtcars", database_file)

kevinrue/sqlighter documentation built on Nov. 16, 2020, 5:59 p.m.