Create the indexes on table
Arguments
- conn
(
DBIConnection
)
A connection to a database.- db_table
(
id-like object(1)
)
A table specification (coercible byid()
).- columns
(
character()
)
The columns that should be unique.
Examples
conn <- get_connection()
mt <- dplyr::copy_to(conn, dplyr::distinct(mtcars, .data$mpg, .data$cyl), name = "mtcars")
create_index(conn, mt, c("mpg", "cyl"))
#> [1] 0
close_connection(conn)