| dbListFields,TrinoConnection,character-method | R Documentation |
List a table's columns
## S4 method for signature 'TrinoConnection,character'
dbListFields(conn, name, ...)
## S4 method for signature 'TrinoConnection,Id'
dbListFields(conn, name, ...)
## S4 method for signature 'TrinoConnection,ANY'
dbListFields(conn, name, ...)
conn |
A TrinoConnection object. |
name |
Table name, required, in any form
dbExistsTable() accepts:
a string with one to three dot-separated parts, a |
... |
Unused, for compatibility with the generic. |
A character vector of column names.
con <- DBI::dbConnect(RTrino::Trino(), host = Sys.getenv("RTRINO_TEST_URL"),
catalog = "tpch", schema = "tiny")
DBI::dbListFields(con, "nation")
DBI::dbListFields(con, DBI::Id(schema = "sf1", table = "region"))
DBI::dbDisconnect(con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.