dbListFields,SQLiteConnection,character-method {RSQLite}R Documentation

List fields in a table

Description

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

Usage

## S4 method for signature '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

library(DBI)
db <- RSQLite::datasetsDb()
dbListFields(db, "iris")
dbDisconnect(db)

[Package RSQLite version 1.1-1 Index]