Skip to contents

Append rows to a table

Usage

hb_append_rows(client, table, data, ..., chunk_size = 1000L)

Arguments

client

A harbour_client.

table

Table name.

data

A tibble or data frame whose columns match the table schema.

...

These dots are for future extensions and must be empty.

chunk_size

Rows per request. SeaTable caps batch writes at 1000 and harbouR clamps it, warning if you asked for more.

Value

Invisibly, a one-row tibble with columns table (chr), n_rows (int) - the count the server confirmed, or the number of rows sent when its reply gives none - and n_requests (int). The server's reply also lists the new rows' _ids; harbouR's summary does not include them.

Examples

# needs a SeaTable server and an API token
if (FALSE) { # \dontrun{
client <- hb_client()
hb_append_rows(client, "Samples", tibble::tibble(Name = "S1"))
} # }