Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 order, sequentially. ExecuteBatchDmlResponse will contain a ResultSet for each DML statement that has successfully executed. If a statement fails, its error status will be returned as part of the ExecuteBatchDmlResponse. Execution will stop at the first failed statement; the remaining statements will not run. ExecuteBatchDml is expected to return an OK status with a response even if there was an error while processing one of the DML statements. Clients must inspect response.status to determine if there were any errors while processing the request. See more details in ExecuteBatchDmlRequest and ExecuteBatchDmlResponse.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.executeBatchDml
.
Synopsis
- type ProjectsInstancesDatabasesSessionsExecuteBatchDmlResource = "v1" :> (CaptureMode "session" "executeBatchDml" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ExecuteBatchDmlRequest :> Post '[JSON] ExecuteBatchDmlResponse))))))))
- projectsInstancesDatabasesSessionsExecuteBatchDml :: ExecuteBatchDmlRequest -> Text -> ProjectsInstancesDatabasesSessionsExecuteBatchDml
- data ProjectsInstancesDatabasesSessionsExecuteBatchDml
- pidsebdXgafv :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Xgafv)
- pidsebdUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Text)
- pidsebdAccessToken :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Text)
- pidsebdUploadType :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Text)
- pidsebdPayload :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml ExecuteBatchDmlRequest
- pidsebdSession :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml Text
- pidsebdCallback :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesSessionsExecuteBatchDmlResource = "v1" :> (CaptureMode "session" "executeBatchDml" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ExecuteBatchDmlRequest :> Post '[JSON] ExecuteBatchDmlResponse)))))))) Source #
A resource alias for spanner.projects.instances.databases.sessions.executeBatchDml
method which the
ProjectsInstancesDatabasesSessionsExecuteBatchDml
request conforms to.
Creating a Request
projectsInstancesDatabasesSessionsExecuteBatchDml Source #
Creates a value of ProjectsInstancesDatabasesSessionsExecuteBatchDml
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesSessionsExecuteBatchDml Source #
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 order, sequentially. ExecuteBatchDmlResponse will contain a ResultSet for each DML statement that has successfully executed. If a statement fails, its error status will be returned as part of the ExecuteBatchDmlResponse. Execution will stop at the first failed statement; the remaining statements will not run. ExecuteBatchDml is expected to return an OK status with a response even if there was an error while processing one of the DML statements. Clients must inspect response.status to determine if there were any errors while processing the request. See more details in ExecuteBatchDmlRequest and ExecuteBatchDmlResponse.
See: projectsInstancesDatabasesSessionsExecuteBatchDml
smart constructor.
Instances
Request Lenses
pidsebdXgafv :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Xgafv) Source #
V1 error format.
pidsebdUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidsebdAccessToken :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Text) Source #
OAuth access token.
pidsebdUploadType :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidsebdPayload :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml ExecuteBatchDmlRequest Source #
Multipart request metadata.
pidsebdSession :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml Text Source #
Required. The session in which the DML statements should be performed.