rws_drop_table: Drop SQLite Table

View source: R/drop.R

rws_drop_tableR Documentation

Drop SQLite Table

Description

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 SQLiteConnection to a database.

Details

Also drops rows from meta and init tables.

Value

TRUE

References

https://www.sqlite.org/lang_droptable.html

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)
rws_drop_table("rws_data", conn = conn)
rws_list_tables(conn)
rws_disconnect(conn)

readwritesqlite documentation built on Oct. 17, 2022, 1:06 a.m.