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.Spanner.Types

Contents

Description

 
Synopsis

Service Configuration

spannerService :: ServiceConfig Source #

Default request referring to version v1 of the Cloud Spanner API. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #

View and manage your data across Google Cloud Platform services

spannerDataScope :: Proxy '["https://www.googleapis.com/auth/spanner.data"] Source #

View and manage the contents of your Spanner databases

spannerAdminScope :: Proxy '["https://www.googleapis.com/auth/spanner.admin"] Source #

Administer your Spanner databases

ExecuteSQLRequestParams

data ExecuteSQLRequestParams Source #

The SQL string can contain parameter placeholders. A parameter placeholder consists of `'''` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id > 'msg_id AND id < 'msg_id + 100"` It is an error to execute an SQL statement with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.

See: executeSQLRequestParams smart constructor.

Instances
Eq ExecuteSQLRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ExecuteSQLRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: ExecuteSQLRequestParams -> Constr #

dataTypeOf :: ExecuteSQLRequestParams -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ExecuteSQLRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ExecuteSQLRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ExecuteSQLRequestParams :: Type -> Type #

ToJSON ExecuteSQLRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ExecuteSQLRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ExecuteSQLRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ExecuteSQLRequestParams = D1 (MetaData "ExecuteSQLRequestParams" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" True) (C1 (MetaCons "ExecuteSQLRequestParams'" PrefixI True) (S1 (MetaSel (Just "_esqlrpAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text JSONValue))))

executeSQLRequestParams Source #

Creates a value of ExecuteSQLRequestParams with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

InstanceLabels

data InstanceLabels Source #

Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. And so you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.

See: instanceLabels smart constructor.

Instances
Eq InstanceLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data InstanceLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: InstanceLabels -> Constr #

dataTypeOf :: InstanceLabels -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstanceLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic InstanceLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep InstanceLabels :: Type -> Type #

ToJSON InstanceLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON InstanceLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep InstanceLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep InstanceLabels = D1 (MetaData "InstanceLabels" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" True) (C1 (MetaCons "InstanceLabels'" PrefixI True) (S1 (MetaSel (Just "_ilAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text Text))))

instanceLabels Source #

Creates a value of InstanceLabels with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

CreateDatabaseMetadata

data CreateDatabaseMetadata Source #

Metadata type for the operation returned by CreateDatabase.

See: createDatabaseMetadata smart constructor.

Instances
Eq CreateDatabaseMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data CreateDatabaseMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: CreateDatabaseMetadata -> Constr #

dataTypeOf :: CreateDatabaseMetadata -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateDatabaseMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic CreateDatabaseMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep CreateDatabaseMetadata :: Type -> Type #

ToJSON CreateDatabaseMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON CreateDatabaseMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CreateDatabaseMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CreateDatabaseMetadata = D1 (MetaData "CreateDatabaseMetadata" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" True) (C1 (MetaCons "CreateDatabaseMetadata'" PrefixI True) (S1 (MetaSel (Just "_cdmDatabase") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))

createDatabaseMetadata :: CreateDatabaseMetadata Source #

Creates a value of CreateDatabaseMetadata with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

cdmDatabase :: Lens' CreateDatabaseMetadata (Maybe Text) Source #

The database being created.

TransactionOptions

data TransactionOptions Source #

# Transactions Each session can have at most one active transaction at a time. After the active transaction is completed, the session can immediately be re-used for the next transaction. It is not necessary to create a new session for each transaction. # Transaction Modes Cloud Spanner supports three transaction modes: 1. Locking read-write. This type of transaction is the only way to write data into Cloud Spanner. These transactions rely on pessimistic locking and, if necessary, two-phase commit. Locking read-write transactions may abort, requiring the application to retry. 2. Snapshot read-only. This transaction type provides guaranteed consistency across several reads, but does not allow writes. Snapshot read-only transactions can be configured to read at timestamps in the past. Snapshot read-only transactions do not need to be committed. 3. Partitioned DML. This type of transaction is used to execute a single Partitioned DML statement. Partitioned DML partitions the key space and runs the DML statement over each partition in parallel using separate, internal transactions that commit independently. Partitioned DML transactions do not need to be committed. For transactions that only read, snapshot read-only transactions provide simpler semantics and are almost always faster. In particular, read-only transactions do not take locks, so they do not conflict with read-write transactions. As a consequence of not taking locks, they also do not abort, so retry loops are not needed. Transactions may only read/write data in a single database. They may, however, read/write data in different tables within that database. ## Locking Read-Write Transactions Locking transactions may be used to atomically read-modify-write data anywhere in a database. This type of transaction is externally consistent. Clients should attempt to minimize the amount of time a transaction is active. Faster transactions commit with higher probability and cause less contention. Cloud Spanner attempts to keep read locks active as long as the transaction continues to do reads, and the transaction has not been terminated by Commit or Rollback. Long periods of inactivity at the client may cause Cloud Spanner to release a transaction's locks and abort it. Conceptually, a read-write transaction consists of zero or more reads or SQL statements followed by Commit. At any time before Commit, the client can send a Rollback request to abort the transaction. ### Semantics Cloud Spanner can commit the transaction if all read locks it acquired are still valid at commit time, and it is able to acquire write locks for all writes. Cloud Spanner can abort the transaction for any reason. If a commit attempt returns `ABORTED`, Cloud Spanner guarantees that the transaction has not modified any user data in Cloud Spanner. Unless the transaction commits, Cloud Spanner makes no guarantees about how long the transaction's locks were held for. It is an error to use Cloud Spanner locks for any sort of mutual exclusion other than between Cloud Spanner transactions themselves. ### Retrying Aborted Transactions When a transaction aborts, the application can choose to retry the whole transaction again. To maximize the chances of successfully committing the retry, the client should execute the retry in the same session as the original attempt. The original session's lock priority increases with each consecutive abort, meaning that each attempt has a slightly better chance of success than the previous. Under some circumstances (e.g., many transactions attempting to modify the same row(s)), a transaction can abort many times in a short period before successfully committing. Thus, it is not a good idea to cap the number of retries a transaction can attempt; instead, it is better to limit the total amount of wall time spent retrying. ### Idle Transactions A transaction is considered idle if it has no outstanding reads or SQL queries and has not started a read or SQL query within the last 10 seconds. Idle transactions can be aborted by Cloud Spanner so that they don't hold on to locks indefinitely. In that case, the commit will fail with error `ABORTED`. If this behavior is undesirable, periodically executing a simple SQL query in the transaction (e.g., `SELECT 1`) prevents the transaction from becoming idle. ## Snapshot Read-Only Transactions Snapshot read-only transactions provides a simpler method than locking read-write transactions for doing several consistent reads. However, this type of transaction does not support writes. Snapshot transactions do not take locks. Instead, they work by choosing a Cloud Spanner timestamp, then executing all reads at that timestamp. Since they do not acquire locks, they do not block concurrent read-write transactions. Unlike locking read-write transactions, snapshot read-only transactions never abort. They can fail if the chosen read timestamp is garbage collected; however, the default garbage collection policy is generous enough that most applications do not need to worry about this in practice. Snapshot read-only transactions do not need to call Commit or Rollback (and in fact are not permitted to do so). To execute a snapshot transaction, the client specifies a timestamp bound, which tells Cloud Spanner how to choose a read timestamp. The types of timestamp bound are: - Strong (the default). - Bounded staleness. - Exact staleness. If the Cloud Spanner database to be read is geographically distributed, stale read-only transactions can execute more quickly than strong or read-write transaction, because they are able to execute far from the leader replica. Each type of timestamp bound is discussed in detail below. ### Strong Strong reads are guaranteed to see the effects of all transactions that have committed before the start of the read. Furthermore, all rows yielded by a single read are consistent with each other -- if any part of the read observes a transaction, all parts of the read see the transaction. Strong reads are not repeatable: two consecutive strong read-only transactions might return inconsistent results if there are concurrent writes. If consistency across reads is required, the reads should be executed within a transaction or at an exact read timestamp. See TransactionOptions.ReadOnly.strong. ### Exact Staleness These timestamp bounds execute reads at a user-specified timestamp. Reads at a timestamp are guaranteed to see a consistent prefix of the global transaction history: they observe modifications done by all transactions with a commit timestamp <= the read timestamp, and observe none of the modifications done by transactions with a larger commit timestamp. They will block until all conflicting transactions that may be assigned commit timestamps <= the read timestamp have finished. The timestamp can either be expressed as an absolute Cloud Spanner commit timestamp or a staleness relative to the current time. These modes do not require a "negotiation phase" to pick a timestamp. As a result, they execute slightly faster than the equivalent boundedly stale concurrency modes. On the other hand, boundedly stale reads usually return fresher results. See TransactionOptions.ReadOnly.read_timestamp and TransactionOptions.ReadOnly.exact_staleness. ### Bounded Staleness Bounded staleness modes allow Cloud Spanner to pick the read timestamp, subject to a user-provided staleness bound. Cloud Spanner chooses the newest timestamp within the staleness bound that allows execution of the reads at the closest available replica without blocking. All rows yielded are consistent with each other -- if any part of the read observes a transaction, all parts of the read see the transaction. Boundedly stale reads are not repeatable: two stale reads, even if they use the same staleness bound, can execute at different timestamps and thus return inconsistent results. Boundedly stale reads execute in two phases: the first phase negotiates a timestamp among all replicas needed to serve the read. In the second phase, reads are executed at the negotiated timestamp. As a result of the two phase execution, bounded staleness reads are usually a little slower than comparable exact staleness reads. However, they are typically able to return fresher results, and are more likely to execute at the closest replica. Because the timestamp negotiation requires up-front knowledge of which rows will be read, it can only be used with single-use read-only transactions. See TransactionOptions.ReadOnly.max_staleness and TransactionOptions.ReadOnly.min_read_timestamp. ### Old Read Timestamps and Garbage Collection Cloud Spanner continuously garbage collects deleted and overwritten data in the background to reclaim storage space. This process is known as "version GC". By default, version GC reclaims versions after they are one hour old. Because of this, Cloud Spanner cannot perform reads at read timestamps more than one hour in the past. This restriction also applies to in-progress reads and/or SQL queries whose timestamp become too old while executing. Reads and SQL queries with too-old read timestamps fail with the error `FAILED_PRECONDITION`. ## Partitioned DML Transactions Partitioned DML transactions are used to execute DML statements with a different execution strategy that provides different, and often better, scalability properties for large, table-wide operations than DML in a ReadWrite transaction. Smaller scoped statements, such as an OLTP workload, should prefer using ReadWrite transactions. Partitioned DML partitions the keyspace and runs the DML statement on each partition in separate, internal transactions. These transactions commit automatically when complete, and run independently from one another. To reduce lock contention, this execution strategy only acquires read locks on rows that match the WHERE clause of the statement. Additionally, the smaller per-partition transactions hold locks for less time. That said, Partitioned DML is not a drop-in replacement for standard DML used in ReadWrite transactions. - The DML statement must be fully-partitionable. Specifically, the statement must be expressible as the union of many statements which each access only a single row of the table. - The statement is not applied atomically to all rows of the table. Rather, the statement is applied atomically to partitions of the table, in independent transactions. Secondary index rows are updated atomically with the base table rows. - Partitioned DML does not guarantee exactly-once execution semantics against a partition. The statement will be applied at least once to each partition. It is strongly recommended that the DML statement should be idempotent to avoid unexpected results. For instance, it is potentially dangerous to run a statement such as `UPDATE table SET column = column + 1` as it could be run multiple times against some rows. - The partitions are committed automatically - there is no support for Commit or Rollback. If the call returns an error, or if the client issuing the ExecuteSql call dies, it is possible that some rows had the statement executed on them successfully. It is also possible that statement was never executed against other rows. - Partitioned DML transactions may only contain the execution of a single DML statement via ExecuteSql or ExecuteStreamingSql. - If any error is encountered during the execution of the partitioned DML operation (for instance, a UNIQUE INDEX violation, division by zero, or a value that cannot be stored due to schema constraints), then the operation is stopped at that point and an error is returned. It is possible that at this point, some partitions have been committed (or even committed multiple times), and other partitions have not been run at all. Given the above, Partitioned DML is good fit for large, database-wide, operations that are idempotent, such as deleting old rows from a very large table.

See: transactionOptions smart constructor.

Instances
Eq TransactionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data TransactionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: TransactionOptions -> Constr #

dataTypeOf :: TransactionOptions -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TransactionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic TransactionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep TransactionOptions :: Type -> Type #

ToJSON TransactionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON TransactionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep TransactionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep TransactionOptions = D1 (MetaData "TransactionOptions" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "TransactionOptions'" PrefixI True) (S1 (MetaSel (Just "_toReadWrite") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ReadWrite)) :*: (S1 (MetaSel (Just "_toPartitionedDml") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PartitionedDml)) :*: S1 (MetaSel (Just "_toReadOnly") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ReadOnly)))))

transactionOptions :: TransactionOptions Source #

Creates a value of TransactionOptions with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

toReadWrite :: Lens' TransactionOptions (Maybe ReadWrite) Source #

Transaction may write. Authorization to begin a read-write transaction requires `spanner.databases.beginOrRollbackReadWriteTransaction` permission on the `session` resource.

toPartitionedDml :: Lens' TransactionOptions (Maybe PartitionedDml) Source #

Partitioned DML transaction. Authorization to begin a Partitioned DML transaction requires `spanner.databases.beginPartitionedDmlTransaction` permission on the `session` resource.

toReadOnly :: Lens' TransactionOptions (Maybe ReadOnly) Source #

Transaction will not write. Authorization to begin a read-only transaction requires `spanner.databases.beginReadOnlyTransaction` permission on the `session` resource.

GetDatabaseDdlResponse

data GetDatabaseDdlResponse Source #

The response for GetDatabaseDdl.

See: getDatabaseDdlResponse smart constructor.

Instances
Eq GetDatabaseDdlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data GetDatabaseDdlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: GetDatabaseDdlResponse -> Constr #

dataTypeOf :: GetDatabaseDdlResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show GetDatabaseDdlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic GetDatabaseDdlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep GetDatabaseDdlResponse :: Type -> Type #

ToJSON GetDatabaseDdlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON GetDatabaseDdlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep GetDatabaseDdlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep GetDatabaseDdlResponse = D1 (MetaData "GetDatabaseDdlResponse" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" True) (C1 (MetaCons "GetDatabaseDdlResponse'" PrefixI True) (S1 (MetaSel (Just "_gddrStatements") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Text]))))

getDatabaseDdlResponse :: GetDatabaseDdlResponse Source #

Creates a value of GetDatabaseDdlResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

gddrStatements :: Lens' GetDatabaseDdlResponse [Text] Source #

A list of formatted DDL statements defining the schema of the database specified in the request.

Status

data Status Source #

The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. The error model is designed to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` that can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons.

See: status smart constructor.

Instances
Eq Status Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

(==) :: Status -> Status -> Bool #

(/=) :: Status -> Status -> Bool #

Data Status Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: Status -> Constr #

dataTypeOf :: Status -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Status Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Status Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Status :: Type -> Type #

Methods

from :: Status -> Rep Status x #

to :: Rep Status x -> Status #

ToJSON Status Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Status Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Status Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Status = D1 (MetaData "Status" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Status'" PrefixI True) (S1 (MetaSel (Just "_sDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [StatusDetailsItem])) :*: (S1 (MetaSel (Just "_sCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_sMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

status :: Status Source #

Creates a value of Status with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sDetails :: Lens' Status [StatusDetailsItem] Source #

A list of messages that carry the error details. There is a common set of message types for APIs to use.

sCode :: Lens' Status (Maybe Int32) Source #

The status code, which should be an enum value of google.rpc.Code.

sMessage :: Lens' Status (Maybe Text) Source #

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

CreateInstanceRequest

data CreateInstanceRequest Source #

The request for CreateInstance.

See: createInstanceRequest smart constructor.

Instances
Eq CreateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data CreateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: CreateInstanceRequest -> Constr #

dataTypeOf :: CreateInstanceRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic CreateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep CreateInstanceRequest :: Type -> Type #

ToJSON CreateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON CreateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CreateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CreateInstanceRequest = D1 (MetaData "CreateInstanceRequest" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "CreateInstanceRequest'" PrefixI True) (S1 (MetaSel (Just "_cirInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cirInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Instance))))

createInstanceRequest :: CreateInstanceRequest Source #

Creates a value of CreateInstanceRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

cirInstanceId :: Lens' CreateInstanceRequest (Maybe Text) Source #

Required. The ID of the instance to create. Valid identifiers are of the form `a-z*[a-z0-9]` and must be between 2 and 64 characters in length.

cirInstance :: Lens' CreateInstanceRequest (Maybe Instance) Source #

Required. The instance to create. The name may be omitted, but if specified must be `/instances/`.

ReadWrite

data ReadWrite Source #

Message type to initiate a read-write transaction. Currently this transaction type has no options.

See: readWrite smart constructor.

Instances
Eq ReadWrite Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ReadWrite Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: ReadWrite -> Constr #

dataTypeOf :: ReadWrite -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ReadWrite Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ReadWrite Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ReadWrite :: Type -> Type #

ToJSON ReadWrite Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ReadWrite Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ReadWrite Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ReadWrite = D1 (MetaData "ReadWrite" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ReadWrite'" PrefixI False) (U1 :: Type -> Type))

readWrite :: ReadWrite Source #

Creates a value of ReadWrite with the minimum fields required to make a request.

RollbackRequest

data RollbackRequest Source #

The request for Rollback.

See: rollbackRequest smart constructor.

Instances
Eq RollbackRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data RollbackRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: RollbackRequest -> Constr #

dataTypeOf :: RollbackRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RollbackRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic RollbackRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep RollbackRequest :: Type -> Type #

ToJSON RollbackRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON RollbackRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep RollbackRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep RollbackRequest = D1 (MetaData "RollbackRequest" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" True) (C1 (MetaCons "RollbackRequest'" PrefixI True) (S1 (MetaSel (Just "_rrTransactionId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bytes))))

rollbackRequest :: RollbackRequest Source #

Creates a value of RollbackRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rrTransactionId :: Lens' RollbackRequest (Maybe ByteString) Source #

Required. The transaction to roll back.

ListDatabasesResponse

data ListDatabasesResponse Source #

The response for ListDatabases.

See: listDatabasesResponse smart constructor.

Instances
Eq ListDatabasesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ListDatabasesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: ListDatabasesResponse -> Constr #

dataTypeOf :: ListDatabasesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListDatabasesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ListDatabasesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ListDatabasesResponse :: Type -> Type #

ToJSON ListDatabasesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ListDatabasesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ListDatabasesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ListDatabasesResponse = D1 (MetaData "ListDatabasesResponse" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ListDatabasesResponse'" PrefixI True) (S1 (MetaSel (Just "_ldrNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ldrDatabases") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Database]))))

listDatabasesResponse :: ListDatabasesResponse Source #

Creates a value of ListDatabasesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ldrNextPageToken :: Lens' ListDatabasesResponse (Maybe Text) Source #

`next_page_token` can be sent in a subsequent ListDatabases call to fetch more of the matching databases.

ldrDatabases :: Lens' ListDatabasesResponse [Database] Source #

Databases that matched the request.

Expr

data Expr Source #

Represents an expression text. Example: title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"

See: expr smart constructor.

Instances
Eq Expr Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

(==) :: Expr -> Expr -> Bool #

(/=) :: Expr -> Expr -> Bool #

Data Expr Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: Expr -> Constr #

dataTypeOf :: Expr -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Expr Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #

Generic Expr Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Expr :: Type -> Type #

Methods

from :: Expr -> Rep Expr x #

to :: Rep Expr x -> Expr #

ToJSON Expr Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Expr Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Expr Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Expr = D1 (MetaData "Expr" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Expr'" PrefixI True) ((S1 (MetaSel (Just "_eLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_eExpression") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_eTitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_eDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

expr :: Expr Source #

Creates a value of Expr with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

eLocation :: Lens' Expr (Maybe Text) Source #

An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

eExpression :: Lens' Expr (Maybe Text) Source #

Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.

eTitle :: Lens' Expr (Maybe Text) Source #

An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.

eDescription :: Lens' Expr (Maybe Text) Source #

An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

ListOperationsResponse

data ListOperationsResponse Source #

The response message for Operations.ListOperations.

See: listOperationsResponse smart constructor.

Instances
Eq ListOperationsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ListOperationsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: ListOperationsResponse -> Constr #

dataTypeOf :: ListOperationsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListOperationsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ListOperationsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ListOperationsResponse :: Type -> Type #

ToJSON ListOperationsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ListOperationsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ListOperationsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ListOperationsResponse = D1 (MetaData "ListOperationsResponse" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ListOperationsResponse'" PrefixI True) (S1 (MetaSel (Just "_lorNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lorOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Operation]))))

listOperationsResponse :: ListOperationsResponse Source #

Creates a value of ListOperationsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

lorNextPageToken :: Lens' ListOperationsResponse (Maybe Text) Source #

The standard List next-page token.

lorOperations :: Lens' ListOperationsResponse [Operation] Source #

A list of operations that matches the specified filter in the request.

GetIAMPolicyRequest

data GetIAMPolicyRequest Source #

Request message for `GetIamPolicy` method.

See: getIAMPolicyRequest smart constructor.

Instances
Eq GetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data GetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: GetIAMPolicyRequest -> Constr #

dataTypeOf :: GetIAMPolicyRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show GetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic GetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep GetIAMPolicyRequest :: Type -> Type #

ToJSON GetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON GetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep GetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep GetIAMPolicyRequest = D1 (MetaData "GetIAMPolicyRequest" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "GetIAMPolicyRequest'" PrefixI False) (U1 :: Type -> Type))

getIAMPolicyRequest :: GetIAMPolicyRequest Source #

Creates a value of GetIAMPolicyRequest with the minimum fields required to make a request.

ChildLink

data ChildLink Source #

Metadata associated with a parent-child relationship appearing in a PlanNode.

See: childLink smart constructor.

childLink :: ChildLink Source #

Creates a value of ChildLink with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

clChildIndex :: Lens' ChildLink (Maybe Int32) Source #

The node to which the link points.

clVariable :: Lens' ChildLink (Maybe Text) Source #

Only present if the child node is SCALAR and corresponds to an output variable of the parent node. The field carries the name of the output variable. For example, a `TableScan` operator that reads rows from a table will have child links to the `SCALAR` nodes representing the output variables created for each column that is read by the operator. The corresponding `variable` fields will be set to the variable names assigned to the columns.

clType :: Lens' ChildLink (Maybe Text) Source #

The type of the link. For example, in Hash Joins this could be used to distinguish between the build child and the probe child, or in the case of the child being an output variable, to represent the tag associated with the output variable.

BeginTransactionRequest

data BeginTransactionRequest Source #

The request for BeginTransaction.

See: beginTransactionRequest smart constructor.

Instances
Eq BeginTransactionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data BeginTransactionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: BeginTransactionRequest -> Constr #

dataTypeOf :: BeginTransactionRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BeginTransactionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic BeginTransactionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep BeginTransactionRequest :: Type -> Type #

ToJSON BeginTransactionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON BeginTransactionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep BeginTransactionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep BeginTransactionRequest = D1 (MetaData "BeginTransactionRequest" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" True) (C1 (MetaCons "BeginTransactionRequest'" PrefixI True) (S1 (MetaSel (Just "_btrOptions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe TransactionOptions))))

beginTransactionRequest :: BeginTransactionRequest Source #

Creates a value of BeginTransactionRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

btrOptions :: Lens' BeginTransactionRequest (Maybe TransactionOptions) Source #

Required. Options for the new transaction.

PartitionOptions

data PartitionOptions Source #

Options for a PartitionQueryRequest and PartitionReadRequest.

See: partitionOptions smart constructor.

Instances
Eq PartitionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PartitionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: PartitionOptions -> Constr #

dataTypeOf :: PartitionOptions -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PartitionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PartitionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PartitionOptions :: Type -> Type #

ToJSON PartitionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PartitionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionOptions Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionOptions = D1 (MetaData "PartitionOptions" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "PartitionOptions'" PrefixI True) (S1 (MetaSel (Just "_poMaxPartitions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_poPartitionSizeBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))

partitionOptions :: PartitionOptions Source #

Creates a value of PartitionOptions with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

poMaxPartitions :: Lens' PartitionOptions (Maybe Int64) Source #

  • *Note:** This hint is currently ignored by PartitionQuery and PartitionRead requests. The desired maximum number of partitions to return. For example, this may be set to the number of workers available. The default for this option is currently 10,000. The maximum value is currently 200,000. This is only a hint. The actual number of partitions returned may be smaller or larger than this maximum count request.

poPartitionSizeBytes :: Lens' PartitionOptions (Maybe Int64) Source #

  • *Note:** This hint is currently ignored by PartitionQuery and PartitionRead requests. The desired data size for each partition generated. The default for this option is currently 1 GiB. This is only a hint. The actual size of each partition may be smaller or larger than this size request.

ResultSetStats

data ResultSetStats Source #

Additional statistics about a ResultSet or PartialResultSet.

See: resultSetStats smart constructor.

Instances
Eq ResultSetStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ResultSetStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: ResultSetStats -> Constr #

dataTypeOf :: ResultSetStats -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ResultSetStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ResultSetStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ResultSetStats :: Type -> Type #

ToJSON ResultSetStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ResultSetStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ResultSetStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ResultSetStats = D1 (MetaData "ResultSetStats" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ResultSetStats'" PrefixI True) ((S1 (MetaSel (Just "_rssRowCountExact") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_rssRowCountLowerBound") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) :*: (S1 (MetaSel (Just "_rssQueryStats") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ResultSetStatsQueryStats)) :*: S1 (MetaSel (Just "_rssQueryPlan") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe QueryPlan)))))

resultSetStats :: ResultSetStats Source #

Creates a value of ResultSetStats with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rssRowCountExact :: Lens' ResultSetStats (Maybe Int64) Source #

Standard DML returns an exact count of rows that were modified.

rssRowCountLowerBound :: Lens' ResultSetStats (Maybe Int64) Source #

Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.

rssQueryStats :: Lens' ResultSetStats (Maybe ResultSetStatsQueryStats) Source #

Aggregated statistics from the execution of the query. Only present when the query is profiled. For example, a query could return the statistics as follows: { "rows_returned": "3", "elapsed_time": "1.22 secs", "cpu_time": "1.19 secs" }

rssQueryPlan :: Lens' ResultSetStats (Maybe QueryPlan) Source #

QueryPlan for the query associated with this result.

Field

data Field Source #

Message representing a single field of a struct.

See: field smart constructor.

Instances
Eq Field Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

(==) :: Field -> Field -> Bool #

(/=) :: Field -> Field -> Bool #

Data Field Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: Field -> Constr #

dataTypeOf :: Field -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Field Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

showsPrec :: Int -> Field -> ShowS #

show :: Field -> String #

showList :: [Field] -> ShowS #

Generic Field Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Field :: Type -> Type #

Methods

from :: Field -> Rep Field x #

to :: Rep Field x -> Field #

ToJSON Field Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Field Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Field Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Field = D1 (MetaData "Field" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Field'" PrefixI True) (S1 (MetaSel (Just "_fName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_fType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Type))))

field :: Field Source #

Creates a value of Field with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

fName :: Lens' Field (Maybe Text) Source #

The name of the field. For reads, this is the column name. For SQL queries, it is the column alias (e.g., `"Word"` in the query `"SELECT 'hello' AS Word"`), or the column name (e.g., `"ColName"` in the query `"SELECT ColName FROM Table"`). Some columns might have an empty name (e.g., !"SELECT UPPER(ColName)"`). Note that a query result can contain multiple fields with the same name.

fType :: Lens' Field (Maybe Type) Source #

The type of the field.

TypeCode

data TypeCode Source #

Required. The TypeCode for this type.

Constructors

TypeCodeUnspecified

TYPE_CODE_UNSPECIFIED Not specified.

Bool

BOOL Encoded as JSON `true` or `false`.

INT64

INT64 Encoded as `string`, in decimal format.

FLOAT64

FLOAT64 Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or `"-Infinity"`.

Timestamp

TIMESTAMP Encoded as `string` in RFC 3339 timestamp format. The time zone must be present, and must be `"Z"`. If the schema has the column option `allow_commit_timestamp=true`, the placeholder string `"spanner.commit_timestamp()"` can be used to instruct the system to insert the commit timestamp associated with the transaction commit.

Date

DATE Encoded as `string` in RFC 3339 date format.

String

STRING Encoded as `string`.

Bytes

BYTES Encoded as a base64-encoded `string`, as described in RFC 4648, section 4.

Array

ARRAY Encoded as `list`, where the list elements are represented according to array_element_type.

Struct

STRUCT Encoded as `list`, where list element `i` is represented according to [struct_type.fields[i]][google.spanner.v1.StructType.fields].

Instances
Enum TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Eq TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Data TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Methods

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

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

toConstr :: TypeCode -> Constr #

dataTypeOf :: TypeCode -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Read TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Show TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Generic TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Associated Types

type Rep TypeCode :: Type -> Type #

Methods

from :: TypeCode -> Rep TypeCode x #

to :: Rep TypeCode x -> TypeCode #

Hashable TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Methods

hashWithSalt :: Int -> TypeCode -> Int #

hash :: TypeCode -> Int #

ToJSON TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromJSON TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromHttpApiData TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

ToHttpApiData TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep TypeCode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep TypeCode = D1 (MetaData "TypeCode" "Network.Google.Spanner.Types.Sum" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (((C1 (MetaCons "TypeCodeUnspecified" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Bool" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "INT64" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "FLOAT64" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Timestamp" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "Date" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "String" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Bytes" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Array" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Struct" PrefixI False) (U1 :: Type -> Type)))))

Write

data Write Source #

Arguments to insert, update, insert_or_update, and replace operations.

See: write smart constructor.

Instances
Eq Write Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

(==) :: Write -> Write -> Bool #

(/=) :: Write -> Write -> Bool #

Data Write Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: Write -> Constr #

dataTypeOf :: Write -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Write Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

showsPrec :: Int -> Write -> ShowS #

show :: Write -> String #

showList :: [Write] -> ShowS #

Generic Write Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Write :: Type -> Type #

Methods

from :: Write -> Rep Write x #

to :: Rep Write x -> Write #

ToJSON Write Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Write Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Write Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Write = D1 (MetaData "Write" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Write'" PrefixI True) (S1 (MetaSel (Just "_wValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [[JSONValue]])) :*: (S1 (MetaSel (Just "_wColumns") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_wTable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

write :: Write Source #

Creates a value of Write with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

wValues :: Lens' Write [[JSONValue]] Source #

The values to be written. `values` can contain more than one list of values. If it does, then multiple rows are written, one for each entry in `values`. Each list in `values` must have exactly as many entries as there are entries in columns above. Sending multiple lists is equivalent to sending multiple `Mutation`s, each containing one `values` entry and repeating table and columns. Individual values in each list are encoded as described here.

wColumns :: Lens' Write [Text] Source #

The names of the columns in table to be written. The list of columns must contain enough columns to allow Cloud Spanner to derive values for all primary key columns in the row(s) to be modified.

wTable :: Lens' Write (Maybe Text) Source #

Required. The table whose rows will be written.

KeySet

data KeySet Source #

`KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All the keys are expected to be in the same table or index. The keys need not be sorted in any particular way. If the same key is specified multiple times in the set (for example if two ranges, two keys, or a key and a range overlap), Cloud Spanner behaves as if the key were only specified once.

See: keySet smart constructor.

Instances
Eq KeySet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

(==) :: KeySet -> KeySet -> Bool #

(/=) :: KeySet -> KeySet -> Bool #

Data KeySet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: KeySet -> Constr #

dataTypeOf :: KeySet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show KeySet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic KeySet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep KeySet :: Type -> Type #

Methods

from :: KeySet -> Rep KeySet x #

to :: Rep KeySet x -> KeySet #

ToJSON KeySet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON KeySet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep KeySet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep KeySet = D1 (MetaData "KeySet" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "KeySet'" PrefixI True) (S1 (MetaSel (Just "_ksAll") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_ksRanges") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [KeyRange])) :*: S1 (MetaSel (Just "_ksKeys") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [[JSONValue]])))))

keySet :: KeySet Source #

Creates a value of KeySet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ksAll :: Lens' KeySet (Maybe Bool) Source #

For convenience `all` can be set to `true` to indicate that this `KeySet` matches all keys in the table or index. Note that any keys specified in `keys` or `ranges` are only yielded once.

ksRanges :: Lens' KeySet [KeyRange] Source #

A list of key ranges. See KeyRange for more information about key range specifications.

ksKeys :: Lens' KeySet [[JSONValue]] Source #

A list of specific keys. Entries in `keys` should have exactly as many elements as there are columns in the primary or index key with which this `KeySet` is used. Individual key values are encoded as described here.

Statement

data Statement Source #

A single DML statement.

See: statement smart constructor.

Instances
Eq Statement Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data Statement Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: Statement -> Constr #

dataTypeOf :: Statement -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Statement Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Statement Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Statement :: Type -> Type #

ToJSON Statement Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Statement Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Statement Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Statement = D1 (MetaData "Statement" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Statement'" PrefixI True) (S1 (MetaSel (Just "_sParamTypes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe StatementParamTypes)) :*: (S1 (MetaSel (Just "_sParams") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe StatementParams)) :*: S1 (MetaSel (Just "_sSQL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

statement :: Statement Source #

Creates a value of Statement with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sParamTypes :: Lens' Statement (Maybe StatementParamTypes) Source #

It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in params as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of Type for more information about SQL types.

sParams :: Lens' Statement (Maybe StatementParams) Source #

The DML string can contain parameter placeholders. A parameter placeholder consists of `'''` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id > 'msg_id AND id < 'msg_id + 100"` It is an error to execute an SQL statement with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.

sSQL :: Lens' Statement (Maybe Text) Source #

Required. The DML string.

PartitionQueryRequestParams

data PartitionQueryRequestParams Source #

The SQL query string can contain parameter placeholders. A parameter placeholder consists of `'''` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id > 'msg_id AND id < 'msg_id + 100"` It is an error to execute an SQL query with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.

See: partitionQueryRequestParams smart constructor.

Instances
Eq PartitionQueryRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PartitionQueryRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: PartitionQueryRequestParams -> Constr #

dataTypeOf :: PartitionQueryRequestParams -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PartitionQueryRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PartitionQueryRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PartitionQueryRequestParams :: Type -> Type #

ToJSON PartitionQueryRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PartitionQueryRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionQueryRequestParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionQueryRequestParams = D1 (MetaData "PartitionQueryRequestParams" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" True) (C1 (MetaCons "PartitionQueryRequestParams'" PrefixI True) (S1 (MetaSel (Just "_pqrpAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text JSONValue))))

partitionQueryRequestParams Source #

Creates a value of PartitionQueryRequestParams with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ExecuteBatchDmlResponse

data ExecuteBatchDmlResponse Source #

The response for ExecuteBatchDml. Contains a list of ResultSet, one for each DML statement that has successfully executed. If a statement fails, the error is returned as part of the response payload. Clients can determine whether all DML statements have run successfully, or if a statement failed, using one of the following approaches: 1. Check if 'status' field is OkStatus. 2. Check if result_sets_size() equals the number of statements in ExecuteBatchDmlRequest. Example 1: A request with 5 DML statements, all executed successfully. Result: A response with 5 ResultSets, one for each statement in the same order, and an OK status. Example 2: A request with 5 DML statements. The 3rd statement has a syntax error. Result: A response with 2 ResultSets, for the first 2 statements that run successfully, and a syntax error (INVALID_ARGUMENT) status. From result_set_size() client can determine that the 3rd statement has failed.

See: executeBatchDmlResponse smart constructor.

Instances
Eq ExecuteBatchDmlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ExecuteBatchDmlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: ExecuteBatchDmlResponse -> Constr #

dataTypeOf :: ExecuteBatchDmlResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ExecuteBatchDmlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ExecuteBatchDmlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ExecuteBatchDmlResponse :: Type -> Type #

ToJSON ExecuteBatchDmlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ExecuteBatchDmlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ExecuteBatchDmlResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ExecuteBatchDmlResponse = D1 (MetaData "ExecuteBatchDmlResponse" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ExecuteBatchDmlResponse'" PrefixI True) (S1 (MetaSel (Just "_ebdrStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Status)) :*: S1 (MetaSel (Just "_ebdrResultSets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ResultSet]))))

executeBatchDmlResponse :: ExecuteBatchDmlResponse Source #

Creates a value of ExecuteBatchDmlResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ebdrStatus :: Lens' ExecuteBatchDmlResponse (Maybe Status) Source #

If all DML statements are executed successfully, status will be OK. Otherwise, the error status of the first failed statement.

ebdrResultSets :: Lens' ExecuteBatchDmlResponse [ResultSet] Source #

ResultSets, one for each statement in the request that ran successfully, in the same order as the statements in the request. Each ResultSet will not contain any rows. The ResultSetStats in each ResultSet will contain the number of rows modified by the statement. Only the first ResultSet in the response contains a valid ResultSetMetadata.

Operation

data Operation Source #

This resource represents a long-running operation that is the result of a network API call.

See: operation smart constructor.

Instances
Eq Operation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data Operation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: Operation -> Constr #

dataTypeOf :: Operation -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Operation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Operation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Operation :: Type -> Type #

ToJSON Operation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Operation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Operation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

operation :: Operation Source #

Creates a value of Operation with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

oDone :: Lens' Operation (Maybe Bool) Source #

If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.

oError :: Lens' Operation (Maybe Status) Source #

The error result of the operation in case of failure or cancellation.

oResponse :: Lens' Operation (Maybe OperationResponse) Source #

The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

oName :: Lens' Operation (Maybe Text) Source #

The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should have the format of `operations/some/unique/name`.

oMetadata :: Lens' Operation (Maybe OperationMetadata) Source #

Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.

UpdateDatabaseDdlMetadata

data UpdateDatabaseDdlMetadata Source #

Metadata type for the operation returned by UpdateDatabaseDdl.

See: updateDatabaseDdlMetadata smart constructor.

Instances
Eq UpdateDatabaseDdlMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data UpdateDatabaseDdlMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: UpdateDatabaseDdlMetadata -> Constr #

dataTypeOf :: UpdateDatabaseDdlMetadata -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateDatabaseDdlMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic UpdateDatabaseDdlMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep UpdateDatabaseDdlMetadata :: Type -> Type #

ToJSON UpdateDatabaseDdlMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON UpdateDatabaseDdlMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep UpdateDatabaseDdlMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep UpdateDatabaseDdlMetadata = D1 (MetaData "UpdateDatabaseDdlMetadata" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "UpdateDatabaseDdlMetadata'" PrefixI True) (S1 (MetaSel (Just "_uddmCommitTimestamps") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DateTime'])) :*: (S1 (MetaSel (Just "_uddmDatabase") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uddmStatements") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))))

updateDatabaseDdlMetadata :: UpdateDatabaseDdlMetadata Source #

Creates a value of UpdateDatabaseDdlMetadata with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

uddmCommitTimestamps :: Lens' UpdateDatabaseDdlMetadata [UTCTime] Source #

Reports the commit timestamps of all statements that have succeeded so far, where `commit_timestamps[i]` is the commit timestamp for the statement `statements[i]`.

uddmDatabase :: Lens' UpdateDatabaseDdlMetadata (Maybe Text) Source #

The database being modified.

uddmStatements :: Lens' UpdateDatabaseDdlMetadata [Text] Source #

For an update this list contains all the statements. For an individual statement, this list contains only that statement.

Empty

data Empty Source #

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.

See: empty smart constructor.

Instances
Eq Empty Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

(==) :: Empty -> Empty -> Bool #

(/=) :: Empty -> Empty -> Bool #

Data Empty Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: Empty -> Constr #

dataTypeOf :: Empty -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Empty Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

showsPrec :: Int -> Empty -> ShowS #

show :: Empty -> String #

showList :: [Empty] -> ShowS #

Generic Empty Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Empty :: Type -> Type #

Methods

from :: Empty -> Rep Empty x #

to :: Rep Empty x -> Empty #

ToJSON Empty Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Empty Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Empty Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Empty = D1 (MetaData "Empty" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Empty'" PrefixI False) (U1 :: Type -> Type))

empty :: Empty Source #

Creates a value of Empty with the minimum fields required to make a request.

Database

data Database Source #

A Cloud Spanner database.

See: database smart constructor.

Instances
Eq Database Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data Database Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: Database -> Constr #

dataTypeOf :: Database -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Database Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Database Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Database :: Type -> Type #

Methods

from :: Database -> Rep Database x #

to :: Rep Database x -> Database #

ToJSON Database Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Database Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Database Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Database = D1 (MetaData "Database" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Database'" PrefixI True) (S1 (MetaSel (Just "_dState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DatabaseState)) :*: S1 (MetaSel (Just "_dName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

database :: Database Source #

Creates a value of Database with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

dState :: Lens' Database (Maybe DatabaseState) Source #

Output only. The current database state.

dName :: Lens' Database (Maybe Text) Source #

Required. The name of the database. Values are of the form `projects//instances//databases/`, where `` is as specified in the `CREATE DATABASE` statement. This name can be passed to other API methods to identify the database.

PlanNode

data PlanNode Source #

Node information for nodes appearing in a QueryPlan.plan_nodes.

See: planNode smart constructor.

Instances
Eq PlanNode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PlanNode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: PlanNode -> Constr #

dataTypeOf :: PlanNode -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PlanNode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PlanNode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PlanNode :: Type -> Type #

Methods

from :: PlanNode -> Rep PlanNode x #

to :: Rep PlanNode x -> PlanNode #

ToJSON PlanNode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PlanNode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PlanNode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

planNode :: PlanNode Source #

Creates a value of PlanNode with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

pnKind :: Lens' PlanNode (Maybe PlanNodeKind) Source #

Used to determine the type of node. May be needed for visualizing different kinds of nodes differently. For example, If the node is a SCALAR node, it will have a condensed representation which can be used to directly embed a description of the node in its parent.

pnShortRepresentation :: Lens' PlanNode (Maybe ShortRepresentation) Source #

Condensed representation for SCALAR nodes.

pnMetadata :: Lens' PlanNode (Maybe PlanNodeMetadata) Source #

Attributes relevant to the node contained in a group of key-value pairs. For example, a Parameter Reference node could have the following information in its metadata: { "parameter_reference": "param1", "parameter_type": "array" }

pnDisplayName :: Lens' PlanNode (Maybe Text) Source #

The display name for the node.

pnExecutionStats :: Lens' PlanNode (Maybe PlanNodeExecutionStats) Source #

The execution statistics associated with the node, contained in a group of key-value pairs. Only present if the plan was returned as a result of a profile query. For example, number of executions, number of rows/time per execution etc.

pnIndex :: Lens' PlanNode (Maybe Int32) Source #

The `PlanNode`'s index in node list.

pnChildLinks :: Lens' PlanNode [ChildLink] Source #

List of child node `index`es and their relationship to this parent.

PlanNodeKind

data PlanNodeKind Source #

Used to determine the type of node. May be needed for visualizing different kinds of nodes differently. For example, If the node is a SCALAR node, it will have a condensed representation which can be used to directly embed a description of the node in its parent.

Constructors

KindUnspecified

KIND_UNSPECIFIED Not specified.

Relational

RELATIONAL Denotes a Relational operator node in the expression tree. Relational operators represent iterative processing of rows during query execution. For example, a `TableScan` operation that reads rows from a table.

Scalar

SCALAR Denotes a Scalar node in the expression tree. Scalar nodes represent non-iterable entities in the query plan. For example, constants or arithmetic operators appearing inside predicate expressions or references to column names.

Instances
Enum PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Eq PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Data PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Methods

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

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

toConstr :: PlanNodeKind -> Constr #

dataTypeOf :: PlanNodeKind -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Read PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Show PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Generic PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Associated Types

type Rep PlanNodeKind :: Type -> Type #

Hashable PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

ToJSON PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromJSON PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromHttpApiData PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

ToHttpApiData PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep PlanNodeKind Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep PlanNodeKind = D1 (MetaData "PlanNodeKind" "Network.Google.Spanner.Types.Sum" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "KindUnspecified" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Relational" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Scalar" PrefixI False) (U1 :: Type -> Type)))

CreateSessionRequest

data CreateSessionRequest Source #

The request for CreateSession.

See: createSessionRequest smart constructor.

Instances
Eq CreateSessionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data CreateSessionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: CreateSessionRequest -> Constr #

dataTypeOf :: CreateSessionRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateSessionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic CreateSessionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep CreateSessionRequest :: Type -> Type #

ToJSON CreateSessionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON CreateSessionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CreateSessionRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CreateSessionRequest = D1 (MetaData "CreateSessionRequest" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" True) (C1 (MetaCons "CreateSessionRequest'" PrefixI True) (S1 (MetaSel (Just "_csrSession") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Session))))

createSessionRequest :: CreateSessionRequest Source #

Creates a value of CreateSessionRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ShortRepresentation

data ShortRepresentation Source #

Condensed representation of a node and its subtree. Only present for `SCALAR` PlanNode(s).

See: shortRepresentation smart constructor.

Instances
Eq ShortRepresentation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ShortRepresentation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: ShortRepresentation -> Constr #

dataTypeOf :: ShortRepresentation -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ShortRepresentation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ShortRepresentation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ShortRepresentation :: Type -> Type #

ToJSON ShortRepresentation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ShortRepresentation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ShortRepresentation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ShortRepresentation = D1 (MetaData "ShortRepresentation" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ShortRepresentation'" PrefixI True) (S1 (MetaSel (Just "_srSubqueries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ShortRepresentationSubqueries)) :*: S1 (MetaSel (Just "_srDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

shortRepresentation :: ShortRepresentation Source #

Creates a value of ShortRepresentation with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

srSubqueries :: Lens' ShortRepresentation (Maybe ShortRepresentationSubqueries) Source #

A mapping of (subquery variable name) -> (subquery node id) for cases where the `description` string of this node references a `SCALAR` subquery contained in the expression subtree rooted at this node. The referenced `SCALAR` subquery may not necessarily be a direct child of this node.

srDescription :: Lens' ShortRepresentation (Maybe Text) Source #

A string representation of the expression subtree rooted at this node.

ShortRepresentationSubqueries

data ShortRepresentationSubqueries Source #

A mapping of (subquery variable name) -> (subquery node id) for cases where the `description` string of this node references a `SCALAR` subquery contained in the expression subtree rooted at this node. The referenced `SCALAR` subquery may not necessarily be a direct child of this node.

See: shortRepresentationSubqueries smart constructor.

Instances
Eq ShortRepresentationSubqueries Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ShortRepresentationSubqueries Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: ShortRepresentationSubqueries -> Constr #

dataTypeOf :: ShortRepresentationSubqueries -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ShortRepresentationSubqueries Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ShortRepresentationSubqueries Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ShortRepresentationSubqueries :: Type -> Type #

ToJSON ShortRepresentationSubqueries Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ShortRepresentationSubqueries Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ShortRepresentationSubqueries Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ShortRepresentationSubqueries = D1 (MetaData "ShortRepresentationSubqueries" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" True) (C1 (MetaCons "ShortRepresentationSubqueries'" PrefixI True) (S1 (MetaSel (Just "_srsAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text (Textual Int32)))))

shortRepresentationSubqueries Source #

Creates a value of ShortRepresentationSubqueries with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

StatusDetailsItem

data StatusDetailsItem Source #

Instances
Eq StatusDetailsItem Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data StatusDetailsItem Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

toConstr :: StatusDetailsItem -> Constr #

dataTypeOf :: StatusDetailsItem -> DataType #

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

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

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

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

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

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

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

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