rws_rename_table: Rename SQLite Table

View source: R/rename.R

rws_rename_tableR Documentation

Rename SQLite Table

Description

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

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