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.ExecuteSQL

Contents

Description

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.

See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.executeSql.

Synopsis

REST Resource

type ProjectsInstancesDatabasesSessionsExecuteSQLResource = "v1" :> (CaptureMode "session" "executeSql" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ExecuteSQLRequest :> Post '[JSON] ResultSet)))))))) Source #

A resource alias for spanner.projects.instances.databases.sessions.executeSql method which the ProjectsInstancesDatabasesSessionsExecuteSQL request conforms to.

Creating a Request

data ProjectsInstancesDatabasesSessionsExecuteSQL Source #

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.

See: projectsInstancesDatabasesSessionsExecuteSQL smart constructor.

Instances
Eq ProjectsInstancesDatabasesSessionsExecuteSQL Source # 
Instance details

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

Data ProjectsInstancesDatabasesSessionsExecuteSQL Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsInstancesDatabasesSessionsExecuteSQL -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesSessionsExecuteSQL -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesDatabasesSessionsExecuteSQL Source # 
Instance details

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

Generic ProjectsInstancesDatabasesSessionsExecuteSQL Source # 
Instance details

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

GoogleRequest ProjectsInstancesDatabasesSessionsExecuteSQL Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesSessionsExecuteSQL Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesSessionsExecuteSQL = D1 (MetaData "ProjectsInstancesDatabasesSessionsExecuteSQL" "Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.ExecuteSQL" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ProjectsInstancesDatabasesSessionsExecuteSQL'" PrefixI True) ((S1 (MetaSel (Just "_pidsesqlXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pidsesqlUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsesqlAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pidsesqlUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsesqlPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ExecuteSQLRequest)) :*: (S1 (MetaSel (Just "_pidsesqlSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pidsesqlCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesSessionsExecuteSQL Source # 
Instance details

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

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

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

Request Lenses

pidsesqlUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Text) Source #

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

pidsesqlUploadType :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Text) Source #

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

pidsesqlSession :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL Text Source #

Required. The session in which the SQL query should be performed.