Skip to contents

Drops SQLite table using DROP TABLE.

Usage

rws_drop_table(table_name, conn)

Arguments

table_name

A string of the name of the table.

conn

A RSQLite::SQLiteConnection to a database.

Value

TRUE

Details

Also drops rows from meta and init tables.

See also

Other rws_rename: rws_rename_column(), rws_rename_table()

Examples

conn <- rws_connect()
rws_write(rws_data, exists = FALSE, conn = conn)
rws_list_tables(conn)
#> [1] "rws_data"
rws_drop_table("rws_data", conn = conn)
#> [1] TRUE
rws_list_tables(conn)
#> character(0)
rws_disconnect(conn)