List table names in an SQLite database
sqliteListTables(file)
file | Path to the SQLite database file |
---|
A character vector of table names.
# Setup ---- library(RSQLite) database_file <- tempfile() conn <- dbConnect(SQLite(), dbname = database_file) dbWriteTable(conn, "mtcars", mtcars[1:5, ]) dbWriteTable(conn, "USArrests", USArrests[1:5, ]) dbDisconnect(conn) # Example ---- sqliteListTables(database_file)#> [1] "USArrests" "mtcars"