rws_rename_column: Rename SQLite Column

View source: R/rename.R

rws_rename_columnR Documentation

Rename SQLite Column

Description

Rename SQLite Column

Usage

rws_rename_column(table_name, column_name, new_column_name, conn)

Arguments

table_name

A string of the name of the table.

column_name

A string of the column name.

new_column_name

A string of the new name for the column.

conn

A SQLiteConnection to a database.

Value

TRUE

See Also

Other rws_rename: rws_drop_table(), rws_rename_table()

Examples

conn <- rws_connect()
rws_write(data.frame(x = 1), x_name = "local", exists = FALSE, conn = conn)
rws_read_table("local", conn = conn)
rws_rename_column("local", "x", "Y", conn = conn)
rws_read_table("local", conn = conn)
rws_disconnect(conn)

poissonconsulting/readwritesqlite documentation built on Oct. 17, 2022, 7:20 p.m.