rws_drop_table {readwritesqlite} | R 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)
[Package readwritesqlite version 0.2.0 Index]