Constructor
new AuthorizedView(table, id)
Parameters:
| Name | Type | Description |
|---|---|---|
table |
Table |
The table that the authorized view exists on. |
id |
string |
Unique identifier of the authorized view. |
Methods
createRules(createRulesInfo, gaxOptionsopt, callback)
Update a row with rules specifying how the row's contents are to be transformed into writes. Rules are applied in order, meaning that earlier rules will affect the results of later ones.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
createRulesInfo |
CreateRulesInformation |
The rules to apply to a row along with the row id of the row to update. |
|||||||||||||
gaxOptions |
object |
<optional> |
Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/CallSettings.html. |
||||||||||||
callback |
function |
The callback function. Properties
|
Throws:
-
If no rules are provided.
- Type
- error
increment(columnInfo, valueopt, gaxOptionsopt, callback)
Increment a specific column within the row. If the column does not exist, it is automatically initialized to 0 before being incremented.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
columnInfo |
IncrementInformation |
The column we are incrementing a value in along with the row id of the affected row. |
|||||||||||||||||
value |
number |
<optional> |
The amount to increment by, defaults to 1. |
||||||||||||||||
gaxOptions |
object |
<optional> |
Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/CallSettings.html. |
||||||||||||||||
callback |
function |
The callback function. Properties
|