Methods
addRowsToRefs(state, rows) → {State}
Sets the returned rows from a query as the first item in the state.references
array, leaving state.data unchanged between operations.
Parameters:
Name | Type | Description |
---|---|---|
state |
State | |
rows |
array | the array of rows returned from the sql query |
- Source:
Returns:
- Type
- State
cleanupState(state) → {State}
Removes unserializable keys from the state.
Parameters:
Name | Type | Description |
---|---|---|
state |
State |
- Source:
Returns:
- Type
- State
Example
cleanupState(state)
createConnection(state) → {State}
Creates a connection.
Parameters:
Name | Type | Description |
---|---|---|
state |
State | Runtime state. |
- Source:
Returns:
- Type
- State
Example
createConnection(state)
flattenRows(state, rows) → {State}
Returns a flatten object of the rows (array of arrays) with rowCount.
Parameters:
Name | Type | Description |
---|---|---|
state |
State | |
rows |
array | the array of rows returned from the sql query |
- Source:
Returns:
- Type
- State