Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.ExecuteSqlRequest
Executes an SQL statement, returning all results in a single reply. This method cannot be used
to return a result set larger than 10 MiB; if the query yields more data than that, the query
fails with a FAILED_PRECONDITION error. Operations 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 fetched in streaming fashion by
calling ExecuteStreamingSql instead.
Inheritance
System.Object
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.ExecuteSqlRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ExecuteSqlRequest : SpannerBaseServiceRequest<ResultSet>, IClientServiceRequest<ResultSet>, IClientServiceRequest
Constructors
ExecuteSqlRequest(IClientService, ExecuteSqlRequest, String)
Constructs a new ExecuteSql request.
Declaration
public ExecuteSqlRequest(IClientService service, ExecuteSqlRequest body, string session)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| ExecuteSqlRequest | body | |
| System.String | session |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.ResultSet>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.ResultSet>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.ResultSet>.RestPath
Session
Required. The session in which the SQL query should be performed.
Declaration
[RequestParameter("session", RequestParameterType.Path)]
public virtual string Session { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.ResultSet>.GetBody()
InitParameters()
Initializes ExecuteSql parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Spanner.v1.SpannerBaseServiceRequest<Google.Apis.Spanner.v1.Data.ResultSet>.InitParameters()