Skip to contents

Add a column to a table

Usage

hb_add_column(client, table, name, type, ..., column_data = NULL)

Arguments

client

A harbour_client.

table

Table name.

name

Column name.

type

SeaTable column type, e.g. "text", "number", "date".

...

These dots are for future extensions and must be empty.

column_data

Optional list of column options, e.g. the choices for a select column. Named column_data rather than data because data means "the rows you are writing" everywhere else in harbouR.

Value

Invisibly returns the client.

Examples

if (FALSE) { # interactive()
client <- hb_client()
hb_add_column(client, "Samples", "Notes", "text")
}