Sets the provided table metadata on a NocoDB server. Currently, this includes:
Setting the order of the tables in the base using
reorder_tbl()according to the row order ofdata.Setting table icons (emojis) and descriptions using
update_tbl()according todata$meta.iconanddata$description(NAs are ignored).
Usage
set_tbl_metadata(
data,
id_base = base_id(origin = origin, email = email, password = password, api_token =
api_token),
origin = funky::config_val("origin"),
email = funky::config_val("email"),
password = funky::config_val("password"),
api_token = funky::config_val("api_token"),
quiet = FALSE
)Arguments
- data
data.frame
Data frame with the columnsname,descriptionandmeta.iconthat defines the table-name-and-metadata-value mapping to be applied. Additional columns are ignored.- id_base
character(1)
NocoDB base identifier as returned bybase_id().- origin
character(1)
NocoDB server origin.character(1)
E-mail address of the NocoDB user to authenticate with.- password
character(1)
Password of the NocoDB user to authenticate with.- api_token
character(1)
NocoDB API token. Takes precedence overemailandpasswordif provided.- quiet
logical(1)
Whether or not to suppress printing status output from internal processing.
See also
Other functions to manage NocoDB tables:
create_data_src_tbl(),
create_tbl(),
data_src_tbls(),
delete_tbl(),
reorder_tbl(),
tbl,
tbl_id(),
tbls(),
update_tbl()