Generic function to post data into Atlas databases
db_write_table.RdData records attributes (list names or columns) must corresponds to the table columns it is sent to. (ie. taxa, observations, datasets, etc).
Usage
db_write_table(
table_name,
data,
...,
schema = "public",
host = ATLAS_API_V4_HOST(),
.page_limit = 50000,
.token = ATLAS_API_TOKEN(),
.cores = 4
)Arguments
- table_name
character. Name of the atlas data object destination. Corresponds to the name of a within Atlas Postgresql database, stored within schemapublicouapi- data
listordata.frame. Either a single record as alistwith names as attributes or multiple records as adata.framewith attributes as columns with attibutes corresponding to the destination column tables.- ...
characterornumericscalar or vector. Additional parameters to provide to the request. May correspond to postgrest http request parameters and syntax.- schema
characterSchema from the database where is located the data object is located. Accept either valuesapiorpublic(default)- .page_limit
integerCount of objects returned through pagination- .token
characterBearer token providing access to the web api- .cores
integerdefault4. Number of cores used to parallelize and improve rapidity