Interface SpannerOptions (7.5.0)

Session pool configuration options. {boolean} [routeToLeaderEnabled=True] If set to false leader aware routing will be disabled. Disabling leader aware routing would route all requests in RW/PDML transactions to any region. {google.spanner.v1.IDirectedReadOptions} [directedReadOptions] Sets the DirectedReadOptions for all ReadRequests and ExecuteSqlRequests for the Client. Indicates which replicas or regions should be used for non-transactional reads or queries. DirectedReadOptions won't be set for readWrite transactions"

Inheritance

GrpcClientOptions >SpannerOptions

Package

@google-cloud/spanner

Properties

apiEndpoint

apiEndpoint?:string;

directedReadOptions

directedReadOptions?:google.spanner.v1.IDirectedReadOptions|null;

port

port?:number;

routeToLeaderEnabled

routeToLeaderEnabled?:boolean;

servicePath

servicePath?:string;

sslCreds

sslCreds?:grpc.ChannelCredentials;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.