db_write_table.Rd
Data records attributes (list names or columns) must corresponds to the table columns it is sent to. (ie. taxa, observations, datasets, etc).
db_write_table(
table_name,
data,
...,
schema = "public",
host = ATLAS_API_V4_HOST(),
.page_limit = 50000,
.token = ATLAS_API_TOKEN(),
.cores = 4
)
character
. Name of the atlas data object destination.
Corresponds to the name of a within Atlas Postgresql database, stored within
schema public
ou api
list
or data.frame
. Either a single record as a list
with
names as attributes or multiple records as a data.frame
with attributes as
columns with attibutes corresponding to the destination column tables.
character
or numeric
scalar or vector.
Additional parameters to provide to the request. May correspond to postgrest
http request parameters and syntax.
character
Schema from the database where is located the data
object is located. Accept either values api
or public
(default)
integer
Count of objects returned through pagination
character
Bearer token providing access to the web api
integer
default 4
. Number of cores used to parallelize and
improve rapidity
This function is designed to interface with a web API deployed with PostgREST