Learn R Programming

RSQLite (version 1.1-1)

dbListFields,SQLiteConnection,character-method: List fields in a table

Description

Returns the fields of a given table as a character vector.

Usage

# S4 method for SQLiteConnection,character
dbListFields(conn, name, ...)

Arguments

conn

An existing '>SQLiteConnection

name

a length 1 character vector giving the name of a table.

...

Needed for compatibility with generic. Otherwise ignored.

See Also

The corresponding generic function DBI::dbListFields().

Examples

Run this code
# NOT RUN {
library(DBI)
db <- RSQLite::datasetsDb()
dbListFields(db, "iris")
dbDisconnect(db)
# }

Run the code above in your browser using DataLab