Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.ReadRequest
Reads rows from the database using key lookups and scans, as a simple key/value style
alternative to ExecuteSql. This method cannot be used to return a result set larger than 10 MiB;
if the read matches more data than that, the read fails with a FAILED_PRECONDITION
error.
Reads inside read-write transactions might return ABORTED
. If this occurs, the application
should restart the transaction from the beginning. See Transaction for more details. Larger
result sets can be yielded in streaming fashion by calling StreamingRead instead.
Inheritance
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.ReadRequest : SpannerBaseServiceRequest<ResultSet>, IClientServiceRequest<ResultSet>, IClientServiceRequest
Constructors
ReadRequest(IClientService, ReadRequest, string)
Constructs a new Read request.
Declaration
public ReadRequest(IClientService service, ReadRequest body, string session)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ReadRequest | body | |
string | session |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Session
Required. The session in which the read should be performed.
Declaration
[RequestParameter("session", RequestParameterType.Path)]
public virtual string Session { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Read parameter list.
Declaration
protected override void InitParameters()