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 |
Reads rows from the database using key lookups and scans, as a simple key/value style alternative to ExecuteSql. This method cannot be used to return a result set larger than 10 MiB; if the read matches more data than that, the read fails with a `FAILED_PRECONDITION` error. Reads 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 yielded in streaming fashion by calling StreamingRead instead.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.read
.
Synopsis
- type ProjectsInstancesDatabasesSessionsReadResource = "v1" :> (CaptureMode "session" "read" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReadRequest :> Post '[JSON] ResultSet))))))))
- projectsInstancesDatabasesSessionsRead :: ReadRequest -> Text -> ProjectsInstancesDatabasesSessionsRead
- data ProjectsInstancesDatabasesSessionsRead
- pidsrXgafv :: Lens' ProjectsInstancesDatabasesSessionsRead (Maybe Xgafv)
- pidsrUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsRead (Maybe Text)
- pidsrAccessToken :: Lens' ProjectsInstancesDatabasesSessionsRead (Maybe Text)
- pidsrUploadType :: Lens' ProjectsInstancesDatabasesSessionsRead (Maybe Text)
- pidsrPayload :: Lens' ProjectsInstancesDatabasesSessionsRead ReadRequest
- pidsrSession :: Lens' ProjectsInstancesDatabasesSessionsRead Text
- pidsrCallback :: Lens' ProjectsInstancesDatabasesSessionsRead (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesSessionsReadResource = "v1" :> (CaptureMode "session" "read" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReadRequest :> Post '[JSON] ResultSet)))))))) Source #
A resource alias for spanner.projects.instances.databases.sessions.read
method which the
ProjectsInstancesDatabasesSessionsRead
request conforms to.
Creating a Request
projectsInstancesDatabasesSessionsRead Source #
Creates a value of ProjectsInstancesDatabasesSessionsRead
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesSessionsRead Source #
Reads rows from the database using key lookups and scans, as a simple key/value style alternative to ExecuteSql. This method cannot be used to return a result set larger than 10 MiB; if the read matches more data than that, the read fails with a `FAILED_PRECONDITION` error. Reads 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 yielded in streaming fashion by calling StreamingRead instead.
See: projectsInstancesDatabasesSessionsRead
smart constructor.
Instances
Request Lenses
pidsrXgafv :: Lens' ProjectsInstancesDatabasesSessionsRead (Maybe Xgafv) Source #
V1 error format.
pidsrUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsRead (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidsrAccessToken :: Lens' ProjectsInstancesDatabasesSessionsRead (Maybe Text) Source #
OAuth access token.
pidsrUploadType :: Lens' ProjectsInstancesDatabasesSessionsRead (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidsrPayload :: Lens' ProjectsInstancesDatabasesSessionsRead ReadRequest Source #
Multipart request metadata.
pidsrSession :: Lens' ProjectsInstancesDatabasesSessionsRead Text Source #
Required. The session in which the read should be performed.