Cloud Spanner Client - Class Uuid (2.6.0)

Reference documentation and code samples for the Cloud Spanner Client class Uuid.

Represents a value with a data type of UUID .

Example:

 use Google\Cloud\Spanner\SpannerClient;

$spanner = new SpannerClient(['projectId' => 'my-project']);

$uuid = $spanner->uuid('f47ac10b-58cc-4372-a567-0e02b2c3d479'); 

Namespace

Google \ Cloud \ Spanner

Methods

__construct

Parameter
Name
Description
value
string

The UUID value.

get

Get the underlying value.

Returns
Type
Description
string

type

Get the type.

Returns
Type
Description
int

formatAsString

Format the value as a string.

Returns
Type
Description
string

__toString

Format the value as a string.

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: