Members
TransactionState
By default a DatastoreRequest is in the NOT_TRANSACTION state. If the DatastoreRequest is a Transaction object, then initially it will be in the NOT_STARTED state, but then the state will become IN_PROGRESS after the transaction has started.
(constant) gapicConfig
Client JSON configuration object, loaded from
src/v1/datastore_admin_client_config.json
.
This file defines retry strategy and timeouts for all API methods in this library.
(constant) gapicConfig
Client JSON configuration object, loaded from
src/v1/datastore_client_config.json
.
This file defines retry strategy and timeouts for all API methods in this library.
Methods
getTransactionRequest(transaction, options)
This function gets transaction request options used for defining a request to create a new transaction on the server.
Parameters:
Name | Type | Description |
---|---|---|
transaction |
The transaction for which the request will be made. |
|
options |
Custom options that will be used to create the request. |
Type Definitions
IntegerTypeCastOptions
Configuration to convert
values of integerValue
type to a custom value. Must provide an
integerTypeCastFunction
to handle integerValue
conversion.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
integerTypeCastFunction |
function |
A custom user
provided function to convert |
|
properties |
string | Array.<string> |
<optional> |
|