id | R Documentation |
Convenience function for DBI::Id
id(db_table, ...)
## S3 method for class 'Id'
id(db_table, conn = NULL, ...)
## S3 method for class 'character'
id(db_table, conn = NULL, allow_table_only = TRUE, ...)
## S3 method for class 'data.frame'
id(db_table, ...)
db_table |
( |
... |
Further arguments passed to methods. |
conn |
( |
allow_table_only |
( |
The given db_table
is parsed to a DBI::Id depending on the type of input:
character
: db_table is parsed to a DBI::Id object using an assumption of "schema.table" syntax
with corresponding schema (if found in conn
) and table values.
If no schema is implied, the default schema of conn
will be used.
DBI::Id
: if schema is not specified in Id
, the schema is set to the default schema for conn
(if given).
tbl_sql
: the remote name is used to resolve the table identification.
data.frame
: A Id is built from the data.frame (columns catalog
, schema
, and table
).
Can be used in conjunction with get_tables(conn, pattern)
.
A DBI::Id
object parsed from db_table (see details).
DBI::Id which this function wraps.
id("schema.table")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.