Skip to contents

Rename SQLite Table

Usage

rws_rename_table(table_name, new_table_name, conn)

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.

Value

TRUE

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)