View source: R/join_controller.R
key_inspector_all_cols | R Documentation |
Return all columns as guess of preferred primary keys.
key_inspector_all_cols(db, tablename)
db |
database handle |
tablename |
character, name of table |
map of keys to keys
describe_tables
if (requireNamespace("DBI", quietly = TRUE) && requireNamespace("RSQLite", quietly = TRUE)) {
my_db <- DBI::dbConnect(RSQLite::SQLite(), ":memory:")
DBI::dbWriteTable(my_db,
"d",
data.frame(x=1:3, y=NA))
print(key_inspector_all_cols(my_db, "d"))
DBI::dbDisconnect(my_db)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.