| id {SCDB} | R Documentation |
Convenience function for DBI::Id
Description
Convenience function for DBI::Id
Usage
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, ...)
Arguments
db_table |
( |
... |
Further arguments passed to methods. |
conn |
( |
allow_table_only |
( |
Details
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 inconn) and table values. If no schema is implied, the default schema ofconnwill be used. -
DBI::Id: if schema is not specified inId, the schema is set to the default schema forconn(if given). -
tbl_sql: the remote name is used to resolve the table identification. -
data.frame: A Id is built from the data.frame (columnscatalog,schema, andtable). Can be used in conjunction withget_tables(conn, pattern).
Value
A DBI::Id object parsed from db_table (see details).
See Also
DBI::Id which this function wraps.
Examples
id("schema.table")