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 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
- 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))))))))
- projectsInstancesDatabasesSessionsExecuteSQL :: ExecuteSQLRequest -> Text -> ProjectsInstancesDatabasesSessionsExecuteSQL
- data ProjectsInstancesDatabasesSessionsExecuteSQL
- pidsesqlXgafv :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Xgafv)
- pidsesqlUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Text)
- pidsesqlAccessToken :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Text)
- pidsesqlUploadType :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Text)
- pidsesqlPayload :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL ExecuteSQLRequest
- pidsesqlSession :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL Text
- pidsesqlCallback :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Text)
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
projectsInstancesDatabasesSessionsExecuteSQL Source #
Creates a value of ProjectsInstancesDatabasesSessionsExecuteSQL
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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
Request Lenses
pidsesqlXgafv :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Xgafv) Source #
V1 error format.
pidsesqlUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidsesqlAccessToken :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Text) Source #
OAuth access token.
pidsesqlUploadType :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidsesqlPayload :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL ExecuteSQLRequest Source #
Multipart request metadata.
pidsesqlSession :: Lens' ProjectsInstancesDatabasesSessionsExecuteSQL Text Source #
Required. The session in which the SQL query should be performed.