get_tbl_idx | R Documentation |
Create a list of indexes from a table. The list reports on which columns the
index exists and whether has the UNIQUE constraint. The function processes
output from sqlite_master_to_df
.
get_tbl_idx(conn, on_tbl, temp = FALSE)
conn |
An object of class |
on_tbl |
The name of the table. |
temp |
Should |
A named list of lists. Each list corresponds to one index on on_tbl
.
A elements (top-level) of the list are named according to the name of the
indexes in the database.
Each element is a list with two entries:
idx_unique
: A logical indicating whether the index satisfies the UNIQUE
constraint as in CREATE UNIQUE INDEX
.
idx_cols
: A character vector with the index columns.
conn <- connect_to_db(db_example("AcademicGraph.sqlite"))
get_tbl_idx(conn, "author_output")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.