View source: R/pmap_db_utilities.R
get_keys | R Documentation |
Function returns a character vector of column name(s) that are the primary or foreign key(s) (see keytype), given a schema, and table name
get_keys(
table,
schema = "dbo",
keytype = c("PRIMARY", "FOREIGN"),
engine = default_engine
)
table |
a string name of table to search |
schema |
a string name of schema to search;default="dbo" |
keytype |
one of either 'PRIMARY' (default) or 'FOREIGN' |
engine |
a dbConnect connection object; by default will look in namespace for default_engine |
a character vector of column(s) making up the primary key or foreign key(s) on the table
get_keys('encounters', schema="dbo", engine = myconnection)
get_keys('encounters', schema="dbo", keytype='FOREIGN', engine=myconnection)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.