dbExistsTable,SQLiteConnection,character-method {RSQLite} | R Documentation |
dbExistsTable()
returns a logical that indicates if a table exists,
dbListTables()
lists all tables as a character vector.
## S4 method for signature 'SQLiteConnection,character' dbExistsTable(conn, name, ...) ## S4 method for signature 'SQLiteConnection' dbListTables(conn, ...)
conn |
An existing |
name |
String, name of table. Match is case insensitive. |
... |
Needed for compatibility with generics, otherwise ignored. |
The corresponding generic functions DBI::dbExistsTable()
and DBI::dbListTables()
.
library(DBI) db <- RSQLite::datasetsDb() dbExistsTable(db, "mtcars") dbExistsTable(db, "nonexistingtable") dbListTables(db) dbDisconnect(db)