Reference documentation and code samples for the Cloud Spanner Client class Snapshot.
Read-only snapshot Transaction.
For full usage details, please refer to Database::snapshot().
Example:
use Google\Cloud\Spanner\SpannerClient;
$spanner = new SpannerClient(['projectId' => 'my-project']);
$database = $spanner->connect('my-instance', 'my-database');
$transaction = $database->snapshot();
Namespace
Google \ Cloud \ SpannerMethods
__construct
| Parameters | |
|---|---|
| Name | Description |
operation |
Operation
The Operation instance. |
session |
Session\SessionCache
The session to use for spanner interactions. |
options |
array
Configuration Options. |
↳ id |
string
The Transaction ID. If no ID is provided, the Transaction will be a Single-Use Transaction. |
↳ readTimestamp |
Timestamp
The read timestamp. |
↳ directedReadOptions |
array
Directed read options. V1\DirectedReadOptions If using the |
↳ transactonOptions |
array
|