gogol-spanner-0.5.0: Google Cloud Spanner SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml

Contents

Description

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

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

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
Eq ProjectsInstancesDatabasesSessionsExecuteBatchDml Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml

Data ProjectsInstancesDatabasesSessionsExecuteBatchDml Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsInstancesDatabasesSessionsExecuteBatchDml -> c ProjectsInstancesDatabasesSessionsExecuteBatchDml #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsInstancesDatabasesSessionsExecuteBatchDml #

toConstr :: ProjectsInstancesDatabasesSessionsExecuteBatchDml -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesSessionsExecuteBatchDml -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsInstancesDatabasesSessionsExecuteBatchDml) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsInstancesDatabasesSessionsExecuteBatchDml) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsInstancesDatabasesSessionsExecuteBatchDml -> ProjectsInstancesDatabasesSessionsExecuteBatchDml #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsInstancesDatabasesSessionsExecuteBatchDml -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsInstancesDatabasesSessionsExecuteBatchDml -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsInstancesDatabasesSessionsExecuteBatchDml -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsInstancesDatabasesSessionsExecuteBatchDml -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesSessionsExecuteBatchDml -> m ProjectsInstancesDatabasesSessionsExecuteBatchDml #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesSessionsExecuteBatchDml -> m ProjectsInstancesDatabasesSessionsExecuteBatchDml #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesSessionsExecuteBatchDml -> m ProjectsInstancesDatabasesSessionsExecuteBatchDml #

Show ProjectsInstancesDatabasesSessionsExecuteBatchDml Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml

Generic ProjectsInstancesDatabasesSessionsExecuteBatchDml Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml

GoogleRequest ProjectsInstancesDatabasesSessionsExecuteBatchDml Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml

type Rep ProjectsInstancesDatabasesSessionsExecuteBatchDml Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml

type Rep ProjectsInstancesDatabasesSessionsExecuteBatchDml = D1 (MetaData "ProjectsInstancesDatabasesSessionsExecuteBatchDml" "Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ProjectsInstancesDatabasesSessionsExecuteBatchDml'" PrefixI True) ((S1 (MetaSel (Just "_pidsebdXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pidsebdUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsebdAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pidsebdUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsebdPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ExecuteBatchDmlRequest)) :*: (S1 (MetaSel (Just "_pidsebdSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pidsebdCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesSessionsExecuteBatchDml Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml

type Scopes ProjectsInstancesDatabasesSessionsExecuteBatchDml = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/spanner.data" ': ([] :: [Symbol]))
type Rs ProjectsInstancesDatabasesSessionsExecuteBatchDml Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteBatchDml

Request Lenses

pidsebdUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pidsebdUploadType :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pidsebdSession :: Lens' ProjectsInstancesDatabasesSessionsExecuteBatchDml Text Source #

Required. The session in which the DML statements should be performed.