dbRemoveTable,SQLiteConnection,character-method {RSQLite}R Documentation

Remove a table from the database

Description

Executes the SQL DROP TABLE.

Usage

## S4 method for signature 'SQLiteConnection,character'
dbRemoveTable(conn, name, ...)

Arguments

conn

An existing SQLiteConnection

name

character vector of length 1 giving name of table to remove

...

Needed for compatibility with generic. Otherwise ignored.

See Also

The corresponding generic function DBI::dbRemoveTable().

Examples

library(DBI)
con <- dbConnect(RSQLite::SQLite())
dbWriteTable(con, "test", data.frame(a = 1))
dbListTables(con)
dbRemoveTable(con, "test")
dbListTables(con)
dbDisconnect(con)

[Package RSQLite version 1.1-2 Index]