Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.ExecuteBatchDmlRequest
Executes a batch of SQL DML statements. This method allows many statements to be run with lower latency than submitting them sequentially with ExecuteSql. Statements are executed in sequential order. A request can succeed even if a statement fails. The ExecuteBatchDmlResponse.status field in the response provides information about the statement that failed. Clients must inspect this field to determine whether an error occurred. Execution stops after the first failed statement; the remaining statements are not executed.
Inheritance
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.ExecuteBatchDmlRequest : SpannerBaseServiceRequest<ExecuteBatchDmlResponse>, IClientServiceRequest<ExecuteBatchDmlResponse>, IClientServiceRequest
Constructors
ExecuteBatchDmlRequest(IClientService, ExecuteBatchDmlRequest, string)
Constructs a new ExecuteBatchDml request.
Declaration
public ExecuteBatchDmlRequest(IClientService service, ExecuteBatchDmlRequest body, string session)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ExecuteBatchDmlRequest | 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 DML statements 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 ExecuteBatchDml parameter list.
Declaration
protected override void InitParameters()