Interface: TableOperations#

TableOperations.TableOperations

Offer CRUD-style operations on a table.

Table of contents#

Methods#

Methods#

create#

create(records, options?): Promise<MinimalRecord>

Create a record or records.

Parameters#

Name Type
records NewRecord
options? OpOptions

Returns#

Promise<MinimalRecord>


destroy#

destroy(recordIds): Promise<void>

Delete a record or records.

Parameters#

Name Type
recordIds number | number[]

Returns#

Promise<void>


getTableId#

getTableId(): Promise<string>

Determine the tableId of the table.

Returns#

Promise<string>


update#

update(records, options?): Promise<void>

Update a record or records.

Parameters#

Name Type
records Record | Record[]
options? OpOptions

Returns#

Promise<void>


upsert#

upsert(records, options?): Promise<void>

Add or update a record or records.

Parameters#

Name Type
records AddOrUpdateRecord | AddOrUpdateRecord[]
options? UpsertOptions

Returns#

Promise<void>