Class: Upserter

Upserter

new Upserter(request) → {Upserter}

Upserter Class
Parameters:
Name Type Description
request object The body of the HTTP Post request from the client
Source:
Returns:
A new instance of Upserter
Type
Upserter

Methods

accumulateResult() → {null}

Pushes the result onto the `reply_list` array
Source:
Returns:
Type
null

executeUpsertRequest(An) → {null}

Initializes and executes an `UpsertRequest` calling `accumulateResult()`
Parameters:
Name Type Description
An object individual item's records
Source:
Returns:
Type
null

generateReply() → {object}

Generate a body for the reply to the client's request.
Source:
Returns:
The object containing a formatted summary of the results of the request
Type
object

upsertRecords() → {null}

Iterates over `record_data` calling `executeUpsertRequest` on each item
Source:
Returns:
Type
null