Learn R Programming

readwritesqlite (version 0.2.0)

rws_drop_table: Drop SQLite Table

Description

Drops SQLite table using DROP TABLE.

Usage

rws_drop_table(table_name, conn)

Value

TRUE

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.

References

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

See Also

Other rws_rename: rws_rename_column(), rws_rename_table()

Examples

Run this code
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)

Run the code above in your browser using DataLab