Skip to main content

Module types

Module types 

Source
Expand description

Spanner primitive type constructors for typed parameter binding.

Structs§

Type
Spanner type definition.

Enums§

TypeCode
Spanner type code.

Functions§

array
Returns a Type representing ARRAY<t> (GoogleSQL) or t[] (PostgreSQL).
bool
Returns a Type representing BOOL (GoogleSQL) or boolean (PostgreSQL).
bytes
Returns a Type representing BYTES (GoogleSQL) or bytea (PostgreSQL).
date
Returns a Type representing DATE (GoogleSQL) or date (PostgreSQL).
float32
Returns a Type representing FLOAT32 (GoogleSQL) or real (PostgreSQL).
float64
Returns a Type representing FLOAT64 (GoogleSQL) or double precision (PostgreSQL).
int64
Returns a Type representing INT64 (GoogleSQL) or bigint (PostgreSQL).
interval
Returns a Type representing INTERVAL (GoogleSQL) or interval (PostgreSQL).
json
Returns a Type representing JSON (GoogleSQL).
numeric
Returns a Type representing NUMERIC (GoogleSQL) or numeric (PostgreSQL).
pg_jsonb
Returns a Type representing jsonb (PostgreSQL).
pg_numeric
Returns a Type representing numeric (PostgreSQL).
pg_oid
Returns a Type representing oid (PostgreSQL).
string
Returns a Type representing STRING (GoogleSQL) or character varying (PostgreSQL).
timestamp
Returns a Type representing TIMESTAMP (GoogleSQL) or timestamp with time zone (PostgreSQL).
uuid
Returns a Type representing UUID (GoogleSQL) or uuid (PostgreSQL).