get_idx_cols | R Documentation |
This function takes a string from a SQL statement that creates an index on a table, and returns the columns that constitute the index.
get_idx_cols(stmt)
stmt |
A SQLite statement to create an index on a table on some columns. The function extracts the columns on which the index is created. As the example illustrates, "ASC" and "DESC" statements are removed. |
A character vector with the column names defining the index.
magutils:::get_idx_cols("CREATE INDEX idx1 ON mytable (col1 ASC, col2 ASC)")
# gives c("col1", "col2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.