Rename SQLite Table
Arguments
- table_name
A string of the name of the table.
- new_table_name
A string of the new name for the table.
- conn
A RSQLite::SQLiteConnection to a database.
See also
Other rws_rename:
rws_drop_table()
,
rws_rename_column()
Examples
conn <- rws_connect()
rws_write(rws_data, exists = FALSE, conn = conn)
rws_list_tables(conn)
#> [1] "rws_data"
rws_rename_table("rws_data", "tableb", conn)
#> [1] TRUE
rws_list_tables(conn)
#> [1] "tableb"
rws_disconnect(conn)