Module: Result

Result set object returned by each database operation.
Source:

Methods

getAffectedItemsCount() → {number}

Retrieve the number of documents affected by the operation.
Source:
Returns:
The number of documents.
Type
number

getAffectedRowsCount() → {number}

Retrieve the number of rows affected by the operation.
Source:
Returns:
The number of rows.
Type
number

getAutoIncrementValue() → {number}

Retrieve the first AUTO INCREMENT value generated by the operation.
Source:
Returns:
The first value.
Type
number

getGeneratedIds() → {Array.<string>}

Retrieve the list of server-side generated document ids.
Source:
Returns:
The list of ids.
Type
Array.<string>

getWarnings() → {Array.<Warning>}

Retrieve the list of warnings generated on the server.
Source:
Returns:
The list of warning objects
Type
Array.<Warning>

getWarningsCount() → {number}

Retrieve the number of warnings generated on the server.
Source:
Returns:
The number of warnings.
Type
number

Type Definitions

Warning

MySQL Warning
Type:
  • Object
Properties:
Name Type Description
level Number
code Number
msg String
Source: