new Upserter(request) → {Upserter}
Upserter Class
Parameters:
Name | Type | Description |
---|---|---|
request |
object | The body of the HTTP Post request from the client |
- Source:
- upsert.js, line 1
Returns:
A new instance of Upserter
- Type
- Upserter
Methods
-
accumulateResult() → {null}
-
Pushes the result onto the `reply_list` array
- Source:
- upsert.js, line 52
Returns:
- Type
- null
-
executeUpsertRequest(An) → {null}
-
Initializes and executes an `UpsertRequest` calling `accumulateResult()`
Parameters:
Name Type Description An
object individual item's records - Source:
- upsert.js, line 39
Returns:
- Type
- null
-
generateReply() → {object}
-
Generate a body for the reply to the client's request.
- Source:
- upsert.js, line 63
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:
- upsert.js, line 24
Returns:
- Type
- null