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

Contents

Description

Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.

See: Cloud Spanner API Reference

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

API Declaration

type SpannerAPI = ProjectsInstancesOperationsListResource :<|> (ProjectsInstancesOperationsGetResource :<|> (ProjectsInstancesOperationsCancelResource :<|> (ProjectsInstancesOperationsDeleteResource :<|> (ProjectsInstancesDatabasesSessionsListResource :<|> (ProjectsInstancesDatabasesSessionsReadResource :<|> (ProjectsInstancesDatabasesSessionsExecuteStreamingSQLResource :<|> (ProjectsInstancesDatabasesSessionsPartitionQueryResource :<|> (ProjectsInstancesDatabasesSessionsBeginTransactionResource :<|> (ProjectsInstancesDatabasesSessionsGetResource :<|> (ProjectsInstancesDatabasesSessionsRollbackResource :<|> (ProjectsInstancesDatabasesSessionsCreateResource :<|> (ProjectsInstancesDatabasesSessionsPartitionReadResource :<|> (ProjectsInstancesDatabasesSessionsExecuteBatchDmlResource :<|> (ProjectsInstancesDatabasesSessionsStreamingReadResource :<|> (ProjectsInstancesDatabasesSessionsDeleteResource :<|> (ProjectsInstancesDatabasesSessionsExecuteSQLResource :<|> (ProjectsInstancesDatabasesSessionsCommitResource :<|> (ProjectsInstancesDatabasesOperationsListResource :<|> (ProjectsInstancesDatabasesOperationsGetResource :<|> (ProjectsInstancesDatabasesOperationsCancelResource :<|> (ProjectsInstancesDatabasesOperationsDeleteResource :<|> (ProjectsInstancesDatabasesDropDatabaseResource :<|> (ProjectsInstancesDatabasesListResource :<|> (ProjectsInstancesDatabasesUpdateDdlResource :<|> (ProjectsInstancesDatabasesGetIAMPolicyResource :<|> (ProjectsInstancesDatabasesGetResource :<|> (ProjectsInstancesDatabasesCreateResource :<|> (ProjectsInstancesDatabasesSetIAMPolicyResource :<|> (ProjectsInstancesDatabasesGetDdlResource :<|> (ProjectsInstancesDatabasesTestIAMPermissionsResource :<|> (ProjectsInstancesListResource :<|> (ProjectsInstancesGetIAMPolicyResource :<|> (ProjectsInstancesPatchResource :<|> (ProjectsInstancesGetResource :<|> (ProjectsInstancesCreateResource :<|> (ProjectsInstancesSetIAMPolicyResource :<|> (ProjectsInstancesTestIAMPermissionsResource :<|> (ProjectsInstancesDeleteResource :<|> (ProjectsInstanceConfigsListResource :<|> ProjectsInstanceConfigsGetResource))))))))))))))))))))))))))))))))))))))) Source #

Represents the entirety of the methods and resources available for the Cloud Spanner API service.

Resources

spanner.projects.instanceConfigs.get

spanner.projects.instanceConfigs.list

spanner.projects.instances.create

spanner.projects.instances.databases.create

spanner.projects.instances.databases.dropDatabase

spanner.projects.instances.databases.get

spanner.projects.instances.databases.getDdl

spanner.projects.instances.databases.getIamPolicy

spanner.projects.instances.databases.list

spanner.projects.instances.databases.operations.cancel

spanner.projects.instances.databases.operations.delete

spanner.projects.instances.databases.operations.get

spanner.projects.instances.databases.operations.list

spanner.projects.instances.databases.sessions.beginTransaction

spanner.projects.instances.databases.sessions.commit

spanner.projects.instances.databases.sessions.create

spanner.projects.instances.databases.sessions.delete

spanner.projects.instances.databases.sessions.executeBatchDml

spanner.projects.instances.databases.sessions.executeSql

spanner.projects.instances.databases.sessions.executeStreamingSql

spanner.projects.instances.databases.sessions.get

spanner.projects.instances.databases.sessions.list

spanner.projects.instances.databases.sessions.partitionQuery

spanner.projects.instances.databases.sessions.partitionRead

spanner.projects.instances.databases.sessions.read

spanner.projects.instances.databases.sessions.rollback

spanner.projects.instances.databases.sessions.streamingRead

spanner.projects.instances.databases.setIamPolicy

spanner.projects.instances.databases.testIamPermissions

spanner.projects.instances.databases.updateDdl

spanner.projects.instances.delete

spanner.projects.instances.get

spanner.projects.instances.getIamPolicy

spanner.projects.instances.list

spanner.projects.instances.operations.cancel

spanner.projects.instances.operations.delete

spanner.projects.instances.operations.get

spanner.projects.instances.operations.list

spanner.projects.instances.patch

spanner.projects.instances.setIamPolicy

spanner.projects.instances.testIamPermissions

Types

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 d) -> StatusDetailsItem -> m StatusDetailsItem #

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

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

Show StatusDetailsItem Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic StatusDetailsItem Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep StatusDetailsItem :: Type -> Type #

ToJSON StatusDetailsItem Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON StatusDetailsItem Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep StatusDetailsItem Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

statusDetailsItem Source #

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

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

sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue) Source #

Properties of the object. Contains field 'type with type URL.

PlanNodeMetadata

data 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" }

See: planNodeMetadata smart constructor.

Instances
Eq PlanNodeMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PlanNodeMetadata 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) -> PlanNodeMetadata -> c PlanNodeMetadata #

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

toConstr :: PlanNodeMetadata -> Constr #

dataTypeOf :: PlanNodeMetadata -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PlanNodeMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PlanNodeMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PlanNodeMetadata :: Type -> Type #

ToJSON PlanNodeMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PlanNodeMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PlanNodeMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

planNodeMetadata Source #

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

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

PartitionedDml

data PartitionedDml Source #

Message type to initiate a Partitioned DML transaction.

See: partitionedDml smart constructor.

Instances
Eq PartitionedDml Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PartitionedDml 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) -> PartitionedDml -> c PartitionedDml #

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

toConstr :: PartitionedDml -> Constr #

dataTypeOf :: PartitionedDml -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PartitionedDml Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PartitionedDml Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PartitionedDml :: Type -> Type #

ToJSON PartitionedDml Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PartitionedDml Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionedDml Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

partitionedDml :: PartitionedDml Source #

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

SetIAMPolicyRequest

data SetIAMPolicyRequest Source #

Request message for `SetIamPolicy` method.

See: setIAMPolicyRequest smart constructor.

Instances
Eq SetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data SetIAMPolicyRequest 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) -> SetIAMPolicyRequest -> c SetIAMPolicyRequest #

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

toConstr :: SetIAMPolicyRequest -> Constr #

dataTypeOf :: SetIAMPolicyRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic SetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep SetIAMPolicyRequest :: Type -> Type #

ToJSON SetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON SetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep SetIAMPolicyRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

setIAMPolicyRequest :: SetIAMPolicyRequest Source #

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

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

siprPolicy :: Lens' SetIAMPolicyRequest (Maybe Policy) Source #

REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.

StatementParamTypes

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

See: statementParamTypes smart constructor.

Instances
Eq StatementParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data StatementParamTypes 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) -> StatementParamTypes -> c StatementParamTypes #

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

toConstr :: StatementParamTypes -> Constr #

dataTypeOf :: StatementParamTypes -> DataType #

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

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

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

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

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

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

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

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

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

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

Show StatementParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic StatementParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep StatementParamTypes :: Type -> Type #

ToJSON StatementParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON StatementParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep StatementParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

statementParamTypes Source #

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

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

UpdateDatabaseDdlRequest

data UpdateDatabaseDdlRequest Source #

Enqueues the given DDL statements to be applied, in order but not necessarily all at once, to the database schema at some point (or points) in the future. The server checks that the statements are executable (syntactically valid, name tables that exist, etc.) before enqueueing them, but they may still fail upon later execution (e.g., if a statement from another batch of statements is applied first and it conflicts in some way, or if there is some data-related problem like a `NULL` value in a column to which `NOT NULL` would be added). If a statement fails, all subsequent statements in the batch are automatically cancelled. Each batch of statements is assigned a name which can be used with the Operations API to monitor progress. See the operation_id field for more details.

See: updateDatabaseDdlRequest smart constructor.

Instances
Eq UpdateDatabaseDdlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data UpdateDatabaseDdlRequest 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) -> UpdateDatabaseDdlRequest -> c UpdateDatabaseDdlRequest #

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

toConstr :: UpdateDatabaseDdlRequest -> Constr #

dataTypeOf :: UpdateDatabaseDdlRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateDatabaseDdlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic UpdateDatabaseDdlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep UpdateDatabaseDdlRequest :: Type -> Type #

ToJSON UpdateDatabaseDdlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON UpdateDatabaseDdlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep UpdateDatabaseDdlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

updateDatabaseDdlRequest :: UpdateDatabaseDdlRequest Source #

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

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

uddrOperationId :: Lens' UpdateDatabaseDdlRequest (Maybe Text) Source #

If empty, the new update request is assigned an automatically-generated operation ID. Otherwise, `operation_id` is used to construct the name of the resulting Operation. Specifying an explicit operation ID simplifies determining whether the statements were executed in the event that the UpdateDatabaseDdl call is replayed, or the return value is otherwise lost: the database and `operation_id` fields can be combined to form the name of the resulting longrunning.Operation: `/operations/`. `operation_id` should be unique within the database, and must be a valid identifier: `a-z*`. Note that automatically-generated operation IDs always begin with an underscore. If the named operation already exists, UpdateDatabaseDdl returns `ALREADY_EXISTS`.

uddrStatements :: Lens' UpdateDatabaseDdlRequest [Text] Source #

DDL statements to be applied to the database.

Mutation

data Mutation Source #

A modification to one or more Cloud Spanner rows. Mutations can be applied to a Cloud Spanner database by sending them in a Commit call.

See: mutation smart constructor.

Instances
Eq Mutation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data Mutation 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) -> Mutation -> c Mutation #

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

toConstr :: Mutation -> Constr #

dataTypeOf :: Mutation -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Mutation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Mutation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Mutation :: Type -> Type #

Methods

from :: Mutation -> Rep Mutation x #

to :: Rep Mutation x -> Mutation #

ToJSON Mutation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Mutation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Mutation Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Mutation = D1 (MetaData "Mutation" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Mutation'" PrefixI True) ((S1 (MetaSel (Just "_mReplace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Write)) :*: S1 (MetaSel (Just "_mInsert") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Write))) :*: (S1 (MetaSel (Just "_mInsertOrUpdate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Write)) :*: (S1 (MetaSel (Just "_mDelete") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Delete')) :*: S1 (MetaSel (Just "_mUpdate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Write))))))

mutation :: Mutation Source #

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

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

mReplace :: Lens' Mutation (Maybe Write) Source #

Like insert, except that if the row already exists, it is deleted, and the column values provided are inserted instead. Unlike insert_or_update, this means any values not explicitly written become `NULL`.

mInsert :: Lens' Mutation (Maybe Write) Source #

Insert new rows in a table. If any of the rows already exist, the write or transaction fails with error `ALREADY_EXISTS`.

mInsertOrUpdate :: Lens' Mutation (Maybe Write) Source #

Like insert, except that if the row already exists, then its column values are overwritten with the ones provided. Any column values not explicitly written are preserved.

mDelete :: Lens' Mutation (Maybe Delete') Source #

Delete rows from a table. Succeeds whether or not the named rows were present.

mUpdate :: Lens' Mutation (Maybe Write) Source #

Update existing rows in a table. If any of the rows does not already exist, the transaction fails with error `NOT_FOUND`.

PartitionReadRequest

data PartitionReadRequest Source #

The request for PartitionRead

See: partitionReadRequest smart constructor.

Instances
Eq PartitionReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PartitionReadRequest 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) -> PartitionReadRequest -> c PartitionReadRequest #

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

toConstr :: PartitionReadRequest -> Constr #

dataTypeOf :: PartitionReadRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PartitionReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PartitionReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PartitionReadRequest :: Type -> Type #

ToJSON PartitionReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PartitionReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionReadRequest = D1 (MetaData "PartitionReadRequest" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "PartitionReadRequest'" PrefixI True) ((S1 (MetaSel (Just "_prrPartitionOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PartitionOptions)) :*: (S1 (MetaSel (Just "_prrKeySet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe KeySet)) :*: S1 (MetaSel (Just "_prrTransaction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TransactionSelector)))) :*: (S1 (MetaSel (Just "_prrColumns") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_prrIndex") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prrTable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

partitionReadRequest :: PartitionReadRequest Source #

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

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

prrPartitionOptions :: Lens' PartitionReadRequest (Maybe PartitionOptions) Source #

Additional options that affect how many partitions are created.

prrKeySet :: Lens' PartitionReadRequest (Maybe KeySet) Source #

Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in index. It is not an error for the `key_set` to name rows that do not exist in the database. Read yields nothing for nonexistent rows.

prrTransaction :: Lens' PartitionReadRequest (Maybe TransactionSelector) Source #

Read only snapshot transactions are supported, read/write and single use transactions are not.

prrColumns :: Lens' PartitionReadRequest [Text] Source #

The columns of table to be returned for each row matching this request.

prrIndex :: Lens' PartitionReadRequest (Maybe Text) Source #

If non-empty, the name of an index on table. This index is used instead of the table primary key when interpreting key_set and sorting result rows. See key_set for further information.

prrTable :: Lens' PartitionReadRequest (Maybe Text) Source #

Required. The name of the table in the database to be read.

ExecuteSQLRequestQueryMode

data ExecuteSQLRequestQueryMode Source #

Used to control the amount of debugging information returned in ResultSetStats. If partition_token is set, query_mode can only be set to QueryMode.NORMAL.

Constructors

Normal

NORMAL The default mode. Only the statement results are returned.

Plan

PLAN This mode returns only the query plan, without any results or execution statistics information.

ProFile

PROFILE This mode returns both the query plan and the execution statistics along with the results.

Instances
Enum ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Eq ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Data ExecuteSQLRequestQueryMode 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) -> ExecuteSQLRequestQueryMode -> c ExecuteSQLRequestQueryMode #

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

toConstr :: ExecuteSQLRequestQueryMode -> Constr #

dataTypeOf :: ExecuteSQLRequestQueryMode -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Read ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Show ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Generic ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Associated Types

type Rep ExecuteSQLRequestQueryMode :: Type -> Type #

Hashable ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

ToJSON ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromJSON ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromHttpApiData ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

ToHttpApiData ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep ExecuteSQLRequestQueryMode Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep ExecuteSQLRequestQueryMode = D1 (MetaData "ExecuteSQLRequestQueryMode" "Network.Google.Spanner.Types.Sum" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Normal" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Plan" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ProFile" PrefixI False) (U1 :: Type -> Type)))

ExecuteSQLRequestParamTypes

data ExecuteSQLRequestParamTypes 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.

See: executeSQLRequestParamTypes smart constructor.

Instances
Eq ExecuteSQLRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ExecuteSQLRequestParamTypes 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) -> ExecuteSQLRequestParamTypes -> c ExecuteSQLRequestParamTypes #

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

toConstr :: ExecuteSQLRequestParamTypes -> Constr #

dataTypeOf :: ExecuteSQLRequestParamTypes -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ExecuteSQLRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ExecuteSQLRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ExecuteSQLRequestParamTypes :: Type -> Type #

ToJSON ExecuteSQLRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ExecuteSQLRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ExecuteSQLRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

executeSQLRequestParamTypes Source #

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

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

Transaction

data Transaction Source #

A transaction.

See: transaction smart constructor.

Instances
Eq Transaction Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data Transaction 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) -> Transaction -> c Transaction #

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

toConstr :: Transaction -> Constr #

dataTypeOf :: Transaction -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Transaction Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Transaction Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Transaction :: Type -> Type #

ToJSON Transaction Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Transaction Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Transaction Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Transaction = D1 (MetaData "Transaction" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Transaction'" PrefixI True) (S1 (MetaSel (Just "_tReadTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: S1 (MetaSel (Just "_tId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes))))

transaction :: Transaction Source #

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

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

tReadTimestamp :: Lens' Transaction (Maybe UTCTime) Source #

For snapshot read-only transactions, the read timestamp chosen for the transaction. Not returned by default: see TransactionOptions.ReadOnly.return_read_timestamp. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.

tId :: Lens' Transaction (Maybe ByteString) Source #

`id` may be used to identify the transaction in subsequent Read, ExecuteSql, Commit, or Rollback calls. Single-use read-only transactions do not have IDs, because single-use transactions do not support multiple requests.

ListSessionsResponse

data ListSessionsResponse Source #

The response for ListSessions.

See: listSessionsResponse smart constructor.

Instances
Eq ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ListSessionsResponse 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) -> ListSessionsResponse -> c ListSessionsResponse #

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

toConstr :: ListSessionsResponse -> Constr #

dataTypeOf :: ListSessionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ListSessionsResponse :: Type -> Type #

ToJSON ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ListSessionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

listSessionsResponse :: ListSessionsResponse Source #

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

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

lsrNextPageToken :: Lens' ListSessionsResponse (Maybe Text) Source #

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

lsrSessions :: Lens' ListSessionsResponse [Session] Source #

The list of requested sessions.

ExecuteBatchDmlRequest

data ExecuteBatchDmlRequest Source #

The request for ExecuteBatchDml

See: executeBatchDmlRequest smart constructor.

Instances
Eq ExecuteBatchDmlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ExecuteBatchDmlRequest 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) -> ExecuteBatchDmlRequest -> c ExecuteBatchDmlRequest #

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

toConstr :: ExecuteBatchDmlRequest -> Constr #

dataTypeOf :: ExecuteBatchDmlRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ExecuteBatchDmlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ExecuteBatchDmlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ExecuteBatchDmlRequest :: Type -> Type #

ToJSON ExecuteBatchDmlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ExecuteBatchDmlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ExecuteBatchDmlRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ExecuteBatchDmlRequest = D1 (MetaData "ExecuteBatchDmlRequest" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ExecuteBatchDmlRequest'" PrefixI True) (S1 (MetaSel (Just "_ebdrSeqno") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: (S1 (MetaSel (Just "_ebdrTransaction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TransactionSelector)) :*: S1 (MetaSel (Just "_ebdrStatements") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Statement])))))

executeBatchDmlRequest :: ExecuteBatchDmlRequest Source #

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

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

ebdrSeqno :: Lens' ExecuteBatchDmlRequest (Maybe Int64) Source #

A per-transaction sequence number used to identify this request. This is used in the same space as the seqno in ExecuteSqlRequest. See more details in ExecuteSqlRequest.

ebdrTransaction :: Lens' ExecuteBatchDmlRequest (Maybe TransactionSelector) Source #

The transaction to use. A ReadWrite transaction is required. Single-use transactions are not supported (to avoid replay). The caller must either supply an existing transaction ID or begin a new transaction.

ebdrStatements :: Lens' ExecuteBatchDmlRequest [Statement] Source #

The list of statements to execute in this batch. Statements are executed serially, such that the effects of statement i are visible to statement i+1. Each statement must be a DML statement. Execution will stop at the first failed statement; the remaining statements will not run. REQUIRES: statements_size() > 0.

StructType

data StructType Source #

`StructType` defines the fields of a STRUCT type.

See: structType smart constructor.

Instances
Eq StructType Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data StructType 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) -> StructType -> c StructType #

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

toConstr :: StructType -> Constr #

dataTypeOf :: StructType -> DataType #

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

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

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

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

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

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

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

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

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

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

Show StructType Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic StructType Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep StructType :: Type -> Type #

ToJSON StructType Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON StructType Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep StructType Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

structType :: StructType Source #

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

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

stFields :: Lens' StructType [Field] Source #

The list of fields that make up this struct. Order is significant, because values of this struct type are represented as lists, where the order of field values matches the order of fields in the StructType. In turn, the order of fields matches the order of columns in a read request, or the order of fields in the `SELECT` clause of a query.

DatabaseState

data DatabaseState Source #

Output only. The current database state.

Constructors

StateUnspecified

STATE_UNSPECIFIED Not specified.

Creating

CREATING The database is still being created. Operations on the database may fail with `FAILED_PRECONDITION` in this state.

Ready

READY The database is fully created and ready for use.

Instances
Enum DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Eq DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Data DatabaseState 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) -> DatabaseState -> c DatabaseState #

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

toConstr :: DatabaseState -> Constr #

dataTypeOf :: DatabaseState -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Read DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Show DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Generic DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Associated Types

type Rep DatabaseState :: Type -> Type #

Hashable DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

ToJSON DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromJSON DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromHttpApiData DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

ToHttpApiData DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep DatabaseState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep DatabaseState = D1 (MetaData "DatabaseState" "Network.Google.Spanner.Types.Sum" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "StateUnspecified" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Creating" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Ready" PrefixI False) (U1 :: Type -> Type)))

Xgafv

data Xgafv Source #

V1 error format.

Constructors

X1

1 v1 error format

X2

2 v2 error format

Instances
Enum Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Eq Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Methods

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

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

Data Xgafv 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) -> Xgafv -> c Xgafv #

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

toConstr :: Xgafv -> Constr #

dataTypeOf :: Xgafv -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Methods

compare :: Xgafv -> Xgafv -> Ordering #

(<) :: Xgafv -> Xgafv -> Bool #

(<=) :: Xgafv -> Xgafv -> Bool #

(>) :: Xgafv -> Xgafv -> Bool #

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

max :: Xgafv -> Xgafv -> Xgafv #

min :: Xgafv -> Xgafv -> Xgafv #

Read Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Show Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Methods

showsPrec :: Int -> Xgafv -> ShowS #

show :: Xgafv -> String #

showList :: [Xgafv] -> ShowS #

Generic Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Associated Types

type Rep Xgafv :: Type -> Type #

Methods

from :: Xgafv -> Rep Xgafv x #

to :: Rep Xgafv x -> Xgafv #

Hashable Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Methods

hashWithSalt :: Int -> Xgafv -> Int #

hash :: Xgafv -> Int #

ToJSON Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromJSON Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromHttpApiData Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

ToHttpApiData Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep Xgafv Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

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

CommitResponse

data CommitResponse Source #

The response for Commit.

See: commitResponse smart constructor.

Instances
Eq CommitResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data CommitResponse 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) -> CommitResponse -> c CommitResponse #

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

toConstr :: CommitResponse -> Constr #

dataTypeOf :: CommitResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CommitResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic CommitResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep CommitResponse :: Type -> Type #

ToJSON CommitResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON CommitResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CommitResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

commitResponse :: CommitResponse Source #

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

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

crCommitTimestamp :: Lens' CommitResponse (Maybe UTCTime) Source #

The Cloud Spanner timestamp at which the transaction committed.

Partition

data Partition Source #

Information returned for each partition returned in a PartitionResponse.

See: partition smart constructor.

Instances
Eq Partition Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data Partition 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) -> Partition -> c Partition #

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

toConstr :: Partition -> Constr #

dataTypeOf :: Partition -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Partition Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Partition Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Partition :: Type -> Type #

ToJSON Partition Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Partition Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Partition Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

partition :: Partition Source #

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

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

pPartitionToken :: Lens' Partition (Maybe ByteString) Source #

This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.

TestIAMPermissionsRequest

data TestIAMPermissionsRequest Source #

Request message for `TestIamPermissions` method.

See: testIAMPermissionsRequest smart constructor.

Instances
Eq TestIAMPermissionsRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data TestIAMPermissionsRequest 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) -> TestIAMPermissionsRequest -> c TestIAMPermissionsRequest #

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

toConstr :: TestIAMPermissionsRequest -> Constr #

dataTypeOf :: TestIAMPermissionsRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TestIAMPermissionsRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic TestIAMPermissionsRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep TestIAMPermissionsRequest :: Type -> Type #

ToJSON TestIAMPermissionsRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON TestIAMPermissionsRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep TestIAMPermissionsRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

testIAMPermissionsRequest :: TestIAMPermissionsRequest Source #

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

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

tiprPermissions :: Lens' TestIAMPermissionsRequest [Text] Source #

REQUIRED: The set of permissions to check for 'resource'. Permissions with wildcards (such as '*', 'spanner.*', 'spanner.instances.*') are not allowed.

PartitionQueryRequestParamTypes

data PartitionQueryRequestParamTypes 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 query parameters. See the definition of Type for more information about SQL types.

See: partitionQueryRequestParamTypes smart constructor.

Instances
Eq PartitionQueryRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PartitionQueryRequestParamTypes 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) -> PartitionQueryRequestParamTypes -> c PartitionQueryRequestParamTypes #

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

toConstr :: PartitionQueryRequestParamTypes -> Constr #

dataTypeOf :: PartitionQueryRequestParamTypes -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PartitionQueryRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PartitionQueryRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PartitionQueryRequestParamTypes :: Type -> Type #

ToJSON PartitionQueryRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PartitionQueryRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionQueryRequestParamTypes Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

partitionQueryRequestParamTypes Source #

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

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

UpdateInstanceMetadata

data UpdateInstanceMetadata Source #

Metadata type for the operation returned by UpdateInstance.

See: updateInstanceMetadata smart constructor.

Instances
Eq UpdateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data UpdateInstanceMetadata 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) -> UpdateInstanceMetadata -> c UpdateInstanceMetadata #

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

toConstr :: UpdateInstanceMetadata -> Constr #

dataTypeOf :: UpdateInstanceMetadata -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic UpdateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep UpdateInstanceMetadata :: Type -> Type #

ToJSON UpdateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON UpdateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep UpdateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep UpdateInstanceMetadata = D1 (MetaData "UpdateInstanceMetadata" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "UpdateInstanceMetadata'" PrefixI True) ((S1 (MetaSel (Just "_uimStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: S1 (MetaSel (Just "_uimCancelTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))) :*: (S1 (MetaSel (Just "_uimEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: S1 (MetaSel (Just "_uimInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Instance)))))

updateInstanceMetadata :: UpdateInstanceMetadata Source #

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

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

uimStartTime :: Lens' UpdateInstanceMetadata (Maybe UTCTime) Source #

The time at which UpdateInstance request was received.

uimCancelTime :: Lens' UpdateInstanceMetadata (Maybe UTCTime) Source #

The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is guaranteed to succeed) and cannot be cancelled again.

uimEndTime :: Lens' UpdateInstanceMetadata (Maybe UTCTime) Source #

The time at which this operation failed or was completed successfully.

uimInstance :: Lens' UpdateInstanceMetadata (Maybe Instance) Source #

The desired end state of the update.

PlanNodeExecutionStats

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

See: planNodeExecutionStats smart constructor.

Instances
Eq PlanNodeExecutionStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PlanNodeExecutionStats 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) -> PlanNodeExecutionStats -> c PlanNodeExecutionStats #

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

toConstr :: PlanNodeExecutionStats -> Constr #

dataTypeOf :: PlanNodeExecutionStats -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PlanNodeExecutionStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PlanNodeExecutionStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PlanNodeExecutionStats :: Type -> Type #

ToJSON PlanNodeExecutionStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PlanNodeExecutionStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PlanNodeExecutionStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

planNodeExecutionStats Source #

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

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

TestIAMPermissionsResponse

data TestIAMPermissionsResponse Source #

Response message for `TestIamPermissions` method.

See: testIAMPermissionsResponse smart constructor.

Instances
Eq TestIAMPermissionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data TestIAMPermissionsResponse 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) -> TestIAMPermissionsResponse -> c TestIAMPermissionsResponse #

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

toConstr :: TestIAMPermissionsResponse -> Constr #

dataTypeOf :: TestIAMPermissionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TestIAMPermissionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic TestIAMPermissionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep TestIAMPermissionsResponse :: Type -> Type #

ToJSON TestIAMPermissionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON TestIAMPermissionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep TestIAMPermissionsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

testIAMPermissionsResponse :: TestIAMPermissionsResponse Source #

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

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

tiamprPermissions :: Lens' TestIAMPermissionsResponse [Text] Source #

A subset of `TestPermissionsRequest.permissions` that the caller is allowed.

PartialResultSet

data PartialResultSet Source #

Partial results from a streaming read or SQL query. Streaming reads and SQL queries better tolerate large result sets, large rows, and large values, but are a little trickier to consume.

See: partialResultSet smart constructor.

Instances
Eq PartialResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PartialResultSet 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) -> PartialResultSet -> c PartialResultSet #

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

toConstr :: PartialResultSet -> Constr #

dataTypeOf :: PartialResultSet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PartialResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PartialResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PartialResultSet :: Type -> Type #

ToJSON PartialResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PartialResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartialResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartialResultSet = D1 (MetaData "PartialResultSet" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "PartialResultSet'" PrefixI True) ((S1 (MetaSel (Just "_prsResumeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes)) :*: S1 (MetaSel (Just "_prsValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [JSONValue]))) :*: (S1 (MetaSel (Just "_prsStats") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ResultSetStats)) :*: (S1 (MetaSel (Just "_prsMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ResultSetMetadata)) :*: S1 (MetaSel (Just "_prsChunkedValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))

partialResultSet :: PartialResultSet Source #

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

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

prsResumeToken :: Lens' PartialResultSet (Maybe ByteString) Source #

Streaming calls might be interrupted for a variety of reasons, such as TCP connection loss. If this occurs, the stream of results can be resumed by re-sending the original request and including `resume_token`. Note that executing any other transaction in the same session invalidates the token.

prsValues :: Lens' PartialResultSet [JSONValue] Source #

A streamed result set consists of a stream of values, which might be split into many `PartialResultSet` messages to accommodate large rows and/or large values. Every N complete values defines a row, where N is equal to the number of entries in metadata.row_type.fields. Most values are encoded based on type as described here. It is possible that the last value in values is "chunked", meaning that the rest of the value is sent in subsequent `PartialResultSet`(s). This is denoted by the chunked_value field. Two or more chunked values can be merged to form a complete value as follows: * `bool/number/null`: cannot be chunked * `string`: concatenate the strings * `list`: concatenate the lists. If the last element in a list is a `string`, `list`, or `object`, merge it with the first element in the next list by applying these rules recursively. * `object`: concatenate the (field name, field value) pairs. If a field name is duplicated, then apply these rules recursively to merge the field values. Some examples of merging: # Strings are concatenated. "foo", "bar" => "foobar" # Lists of non-strings are concatenated. [2, 3], [4] => [2, 3, 4] # Lists are concatenated, but the last and first elements are merged # because they are strings. ["a", "b"], ["c", "d"] => ["a", "bc", "d"] # Lists are concatenated, but the last and first elements are merged # because they are lists. Recursively, the last and first elements # of the inner lists are merged because they are strings. ["a", ["b", "c"]], [["d"], "e"] => ["a", ["b", "cd"], "e"] # Non-overlapping object fields are combined. {"a": "1"}, {"b": "2"} => {"a": "1", "b": 2"} # Overlapping object fields are merged. {"a": "1"}, {"a": "2"} => {"a": "12"} # Examples of merging objects containing lists of strings. {"a": ["1"]}, {"a": ["2"]} => {"a": ["12"]} For a more complete example, suppose a streaming SQL query is yielding a result set whose rows contain a single string field. The following `PartialResultSet`s might be yielded: { "metadata": { ... } "values": ["Hello", "W"] "chunked_value": true "resume_token": "Af65..." } { "values": ["orl"] "chunked_value": true "resume_token": "Bqp2..." } { "values": ["d"] "resume_token": "Zx1B..." } This sequence of `PartialResultSet`s encodes two rows, one containing the field value `"Hello"`, and a second containing the field value `"World" = "W" + "orl" + "d"`.

prsStats :: Lens' PartialResultSet (Maybe ResultSetStats) Source #

Query plan and execution statistics for the statement that produced this streaming result set. These can be requested by setting ExecuteSqlRequest.query_mode and are sent only once with the last response in the stream. This field will also be present in the last response for DML statements.

prsMetadata :: Lens' PartialResultSet (Maybe ResultSetMetadata) Source #

Metadata about the result set, such as row type information. Only present in the first response.

prsChunkedValue :: Lens' PartialResultSet (Maybe Bool) Source #

If true, then the final value in values is chunked, and must be combined with more values from subsequent `PartialResultSet`s to obtain a complete field value.

Policy

data Policy Source #

Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM. **JSON Example** { "bindings": [ { "role": "roles/owner", "members": [ "user:mike'example.com", "group:admins'example.com", "domain:google.com", "serviceAccount:my-other-app'appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean'example.com"] } ] } **YAML Example** bindings: - members: - user:mike'example.com - group:admins'example.com - domain:google.com - serviceAccount:my-other-app'appspot.gserviceaccount.com role: roles/owner - members: - user:sean'example.com role: roles/viewer For a description of IAM and its features, see the IAM developer's guide.

See: policy smart constructor.

Instances
Eq Policy Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

Data Policy 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) -> Policy -> c Policy #

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

toConstr :: Policy -> Constr #

dataTypeOf :: Policy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Policy Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Policy Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Policy :: Type -> Type #

Methods

from :: Policy -> Rep Policy x #

to :: Rep Policy x -> Policy #

ToJSON Policy Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Policy Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Policy Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Policy = D1 (MetaData "Policy" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Policy'" PrefixI True) (S1 (MetaSel (Just "_pEtag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes)) :*: (S1 (MetaSel (Just "_pVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_pBindings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Binding])))))

policy :: Policy Source #

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

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

pEtag :: Lens' Policy (Maybe ByteString) Source #

`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.

pBindings :: Lens' Policy [Binding] Source #

Associates a list of `members` to a `role`. `bindings` with no members will result in an error.

CreateDatabaseRequest

data CreateDatabaseRequest Source #

The request for CreateDatabase.

See: createDatabaseRequest smart constructor.

Instances
Eq CreateDatabaseRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data CreateDatabaseRequest 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) -> CreateDatabaseRequest -> c CreateDatabaseRequest #

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

toConstr :: CreateDatabaseRequest -> Constr #

dataTypeOf :: CreateDatabaseRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateDatabaseRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic CreateDatabaseRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep CreateDatabaseRequest :: Type -> Type #

ToJSON CreateDatabaseRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON CreateDatabaseRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CreateDatabaseRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

createDatabaseRequest :: CreateDatabaseRequest Source #

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

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

cdrExtraStatements :: Lens' CreateDatabaseRequest [Text] Source #

An optional list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.

cdrCreateStatement :: Lens' CreateDatabaseRequest (Maybe Text) Source #

Required. A `CREATE DATABASE` statement, which specifies the ID of the new database. The database ID must conform to the regular expression `a-z*[a-z0-9]` and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`` ` ``).

ExecuteSQLRequest

data ExecuteSQLRequest Source #

The request for ExecuteSql and ExecuteStreamingSql.

See: executeSQLRequest smart constructor.

Instances
Eq ExecuteSQLRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ExecuteSQLRequest 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) -> ExecuteSQLRequest -> c ExecuteSQLRequest #

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

toConstr :: ExecuteSQLRequest -> Constr #

dataTypeOf :: ExecuteSQLRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ExecuteSQLRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ExecuteSQLRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ExecuteSQLRequest :: Type -> Type #

ToJSON ExecuteSQLRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ExecuteSQLRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ExecuteSQLRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

executeSQLRequest :: ExecuteSQLRequest Source #

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

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

esqlrParamTypes :: Lens' ExecuteSQLRequest (Maybe ExecuteSQLRequestParamTypes) 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.

esqlrResumeToken :: Lens' ExecuteSQLRequest (Maybe ByteString) Source #

If this request is resuming a previously interrupted SQL statement execution, `resume_token` should be copied from the last PartialResultSet yielded before the interruption. Doing this enables the new SQL statement execution to resume where the last one left off. The rest of the request parameters must exactly match the request that yielded this token.

esqlrSeqno :: Lens' ExecuteSQLRequest (Maybe Int64) Source #

A per-transaction sequence number used to identify this request. This makes each request idempotent such that if the request is received multiple times, at most one will succeed. The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution. Required for DML statements. Ignored for queries.

esqlrParams :: Lens' ExecuteSQLRequest (Maybe 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.

esqlrTransaction :: Lens' ExecuteSQLRequest (Maybe TransactionSelector) Source #

The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency. The transaction to use. For queries, if none is provided, the default is a temporary read-only transaction with strong concurrency. Standard DML statements require a ReadWrite transaction. Single-use transactions are not supported (to avoid replay). The caller must either supply an existing transaction ID or begin a new transaction. Partitioned DML requires an existing PartitionedDml transaction ID.

esqlrSQL :: Lens' ExecuteSQLRequest (Maybe Text) Source #

Required. The SQL string.

esqlrPartitionToken :: Lens' ExecuteSQLRequest (Maybe ByteString) Source #

If present, results will be restricted to the specified partition previously created using PartitionQuery(). There must be an exact match for the values of fields common to this message and the PartitionQueryRequest message used to create this partition_token.

esqlrQueryMode :: Lens' ExecuteSQLRequest (Maybe ExecuteSQLRequestQueryMode) Source #

Used to control the amount of debugging information returned in ResultSetStats. If partition_token is set, query_mode can only be set to QueryMode.NORMAL.

CommitRequest

data CommitRequest Source #

The request for Commit.

See: commitRequest smart constructor.

Instances
Eq CommitRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data CommitRequest 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) -> CommitRequest -> c CommitRequest #

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

toConstr :: CommitRequest -> Constr #

dataTypeOf :: CommitRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CommitRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic CommitRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep CommitRequest :: Type -> Type #

ToJSON CommitRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON CommitRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CommitRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CommitRequest = D1 (MetaData "CommitRequest" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "CommitRequest'" PrefixI True) (S1 (MetaSel (Just "_crMutations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Mutation])) :*: (S1 (MetaSel (Just "_crTransactionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes)) :*: S1 (MetaSel (Just "_crSingleUseTransaction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TransactionOptions)))))

commitRequest :: CommitRequest Source #

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

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

crMutations :: Lens' CommitRequest [Mutation] Source #

The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.

crTransactionId :: Lens' CommitRequest (Maybe ByteString) Source #

Commit a previously-started transaction.

crSingleUseTransaction :: Lens' CommitRequest (Maybe TransactionOptions) Source #

Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it is possible that the mutations are executed more than once. If this is undesirable, use BeginTransaction and Commit instead.

Type

data Type Source #

`Type` indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query.

See: type' smart constructor.

Instances
Eq Type Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

Data Type 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) -> Type -> c Type #

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

toConstr :: Type -> Constr #

dataTypeOf :: Type -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Type Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

Generic Type Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Type :: Type -> Type #

Methods

from :: Type -> Rep Type x #

to :: Rep Type x -> Type #

ToJSON Type Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Type Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Type Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

type' :: Type Source #

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

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

tArrayElementType :: Lens' Type (Maybe Type) Source #

If code == ARRAY, then `array_element_type` is the type of the array elements.

tStructType :: Lens' Type (Maybe StructType) Source #

If code == STRUCT, then `struct_type` provides type information for the struct's fields.

tCode :: Lens' Type (Maybe TypeCode) Source #

Required. The TypeCode for this type.

CreateInstanceMetadata

data CreateInstanceMetadata Source #

Metadata type for the operation returned by CreateInstance.

See: createInstanceMetadata smart constructor.

Instances
Eq CreateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data CreateInstanceMetadata 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) -> CreateInstanceMetadata -> c CreateInstanceMetadata #

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

toConstr :: CreateInstanceMetadata -> Constr #

dataTypeOf :: CreateInstanceMetadata -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic CreateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep CreateInstanceMetadata :: Type -> Type #

ToJSON CreateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON CreateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CreateInstanceMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep CreateInstanceMetadata = D1 (MetaData "CreateInstanceMetadata" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "CreateInstanceMetadata'" PrefixI True) ((S1 (MetaSel (Just "_cimStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: S1 (MetaSel (Just "_cimCancelTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))) :*: (S1 (MetaSel (Just "_cimEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: S1 (MetaSel (Just "_cimInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Instance)))))

createInstanceMetadata :: CreateInstanceMetadata Source #

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

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

cimStartTime :: Lens' CreateInstanceMetadata (Maybe UTCTime) Source #

The time at which the CreateInstance request was received.

cimCancelTime :: Lens' CreateInstanceMetadata (Maybe UTCTime) Source #

The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is guaranteed to succeed) and cannot be cancelled again.

cimEndTime :: Lens' CreateInstanceMetadata (Maybe UTCTime) Source #

The time at which this operation failed or was completed successfully.

KeyRange

data KeyRange Source #

KeyRange represents a range of rows in a table or index. A range has a start key and an end key. These keys can be open or closed, indicating if the range includes rows with that key. Keys are represented by lists, where the ith value in the list corresponds to the ith component of the table or index primary key. Individual values are encoded as described here. For example, consider the following table definition: CREATE TABLE UserEvents ( UserName STRING(MAX), EventDate STRING(10) ) PRIMARY KEY(UserName, EventDate); The following keys name rows in this table: "Bob", "2014-09-23" Since the `UserEvents` table's `PRIMARY KEY` clause names two columns, each `UserEvents` key has two elements; the first is the `UserName`, and the second is the `EventDate`. Key ranges with multiple components are interpreted lexicographically by component using the table or index key's declared sort order. For example, the following range returns all events for user `"Bob"` that occurred in the year 2015: "start_closed": ["Bob", "2015-01-01"] "end_closed": ["Bob", "2015-12-31"] Start and end keys can omit trailing key components. This affects the inclusion and exclusion of rows that exactly match the provided key components: if the key is closed, then rows that exactly match the provided components are included; if the key is open, then rows that exactly match are not included. For example, the following range includes all events for `"Bob"` that occurred during and after the year 2000: "start_closed": ["Bob", "2000-01-01"] "end_closed": ["Bob"] The next example retrieves all events for `"Bob"`: "start_closed": ["Bob"] "end_closed": ["Bob"] To retrieve events before the year 2000: "start_closed": ["Bob"] "end_open": ["Bob", "2000-01-01"] The following range includes all rows in the table: "start_closed": [] "end_closed": [] This range returns all users whose `UserName` begins with any character from A to C: "start_closed": ["A"] "end_open": ["D"] This range returns all users whose `UserName` begins with B: "start_closed": ["B"] "end_open": ["C"] Key ranges honor column sort order. For example, suppose a table is defined as follows: CREATE TABLE DescendingSortedTable { Key INT64, ... ) PRIMARY KEY(Key DESC); The following range retrieves all rows with key values between 1 and 100 inclusive: "start_closed": ["100"] "end_closed": ["1"] Note that 100 is passed as the start, and 1 is passed as the end, because `Key` is a descending column in the schema.

See: keyRange smart constructor.

Instances
Eq KeyRange Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data KeyRange 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) -> KeyRange -> c KeyRange #

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

toConstr :: KeyRange -> Constr #

dataTypeOf :: KeyRange -> DataType #

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

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

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

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

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

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

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

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

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

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

Show KeyRange Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic KeyRange Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep KeyRange :: Type -> Type #

Methods

from :: KeyRange -> Rep KeyRange x #

to :: Rep KeyRange x -> KeyRange #

ToJSON KeyRange Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON KeyRange Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep KeyRange Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

keyRange :: KeyRange Source #

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

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

krStartClosed :: Lens' KeyRange [JSONValue] Source #

If the start is closed, then the range includes all rows whose first `len(start_closed)` key columns exactly match `start_closed`.

krEndOpen :: Lens' KeyRange [JSONValue] Source #

If the end is open, then the range excludes rows whose first `len(end_open)` key columns exactly match `end_open`.

krStartOpen :: Lens' KeyRange [JSONValue] Source #

If the start is open, then the range excludes rows whose first `len(start_open)` key columns exactly match `start_open`.

krEndClosed :: Lens' KeyRange [JSONValue] Source #

If the end is closed, then the range includes all rows whose first `len(end_closed)` key columns exactly match `end_closed`.

OperationMetadata

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

See: operationMetadata smart constructor.

Instances
Eq OperationMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data OperationMetadata 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) -> OperationMetadata -> c OperationMetadata #

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

toConstr :: OperationMetadata -> Constr #

dataTypeOf :: OperationMetadata -> DataType #

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

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

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

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

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

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

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

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

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

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

Show OperationMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic OperationMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep OperationMetadata :: Type -> Type #

ToJSON OperationMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON OperationMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep OperationMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

operationMetadata Source #

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

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

omAddtional :: Lens' OperationMetadata (HashMap Text JSONValue) Source #

Properties of the object. Contains field 'type with type URL.

InstanceConfig

data InstanceConfig Source #

A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication.

See: instanceConfig smart constructor.

Instances
Eq InstanceConfig Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data InstanceConfig 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) -> InstanceConfig -> c InstanceConfig #

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

toConstr :: InstanceConfig -> Constr #

dataTypeOf :: InstanceConfig -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstanceConfig Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic InstanceConfig Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep InstanceConfig :: Type -> Type #

ToJSON InstanceConfig Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON InstanceConfig Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep InstanceConfig Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

instanceConfig :: InstanceConfig Source #

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

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

icName :: Lens' InstanceConfig (Maybe Text) Source #

A unique identifier for the instance configuration. Values are of the form `projects//instanceConfigs/a-z*`

icDisplayName :: Lens' InstanceConfig (Maybe Text) Source #

The name of this instance configuration as it appears in UIs.

ResultSet

data ResultSet Source #

Results from Read or ExecuteSql.

See: resultSet smart constructor.

Instances
Eq ResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ResultSet 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) -> ResultSet -> c ResultSet #

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

toConstr :: ResultSet -> Constr #

dataTypeOf :: ResultSet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ResultSet :: Type -> Type #

ToJSON ResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ResultSet Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ResultSet = D1 (MetaData "ResultSet" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ResultSet'" PrefixI True) (S1 (MetaSel (Just "_rsStats") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ResultSetStats)) :*: (S1 (MetaSel (Just "_rsRows") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [[JSONValue]])) :*: S1 (MetaSel (Just "_rsMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ResultSetMetadata)))))

resultSet :: ResultSet Source #

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

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

rsStats :: Lens' ResultSet (Maybe ResultSetStats) Source #

Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting ExecuteSqlRequest.query_mode. DML statements always produce stats containing the number of rows modified, unless executed using the ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode. Other fields may or may not be populated, based on the ExecuteSqlRequest.query_mode.

rsRows :: Lens' ResultSet [[JSONValue]] Source #

Each element in `rows` is a row whose format is defined by metadata.row_type. The ith element in each row matches the ith field in metadata.row_type. Elements are encoded based on type as described here.

rsMetadata :: Lens' ResultSet (Maybe ResultSetMetadata) Source #

Metadata about the result set, such as row type information.

SessionLabels

data SessionLabels Source #

The labels for the session. * 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 session. See https://goo.gl/xmQnxf for more information on and examples of labels.

See: sessionLabels smart constructor.

Instances
Eq SessionLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data SessionLabels 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) -> SessionLabels -> c SessionLabels #

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

toConstr :: SessionLabels -> Constr #

dataTypeOf :: SessionLabels -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SessionLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic SessionLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep SessionLabels :: Type -> Type #

ToJSON SessionLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON SessionLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep SessionLabels Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

sessionLabels Source #

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

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

ListInstancesResponse

data ListInstancesResponse Source #

The response for ListInstances.

See: listInstancesResponse smart constructor.

Instances
Eq ListInstancesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ListInstancesResponse 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) -> ListInstancesResponse -> c ListInstancesResponse #

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

toConstr :: ListInstancesResponse -> Constr #

dataTypeOf :: ListInstancesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListInstancesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ListInstancesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ListInstancesResponse :: Type -> Type #

ToJSON ListInstancesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ListInstancesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ListInstancesResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

listInstancesResponse :: ListInstancesResponse Source #

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

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

lirNextPageToken :: Lens' ListInstancesResponse (Maybe Text) Source #

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

lirInstances :: Lens' ListInstancesResponse [Instance] Source #

The list of requested instances.

ReadRequest

data ReadRequest Source #

The request for Read and StreamingRead.

See: readRequest smart constructor.

Instances
Eq ReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ReadRequest 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) -> ReadRequest -> c ReadRequest #

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

toConstr :: ReadRequest -> Constr #

dataTypeOf :: ReadRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ReadRequest :: Type -> Type #

ToJSON ReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ReadRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

readRequest :: ReadRequest Source #

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

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

rrResumeToken :: Lens' ReadRequest (Maybe ByteString) Source #

If this request is resuming a previously interrupted read, `resume_token` should be copied from the last PartialResultSet yielded before the interruption. Doing this enables the new read to resume where the last read left off. The rest of the request parameters must exactly match the request that yielded this token.

rrKeySet :: Lens' ReadRequest (Maybe KeySet) Source #

Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in index. If the partition_token field is empty, rows are yielded in table primary key order (if index is empty) or index key order (if index is non-empty). If the partition_token field is not empty, rows will be yielded in an unspecified order. It is not an error for the `key_set` to name rows that do not exist in the database. Read yields nothing for nonexistent rows.

rrTransaction :: Lens' ReadRequest (Maybe TransactionSelector) Source #

The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.

rrColumns :: Lens' ReadRequest [Text] Source #

The columns of table to be returned for each row matching this request.

rrLimit :: Lens' ReadRequest (Maybe Int64) Source #

If greater than zero, only the first `limit` rows are yielded. If `limit` is zero, the default is no limit. A limit cannot be specified if `partition_token` is set.

rrIndex :: Lens' ReadRequest (Maybe Text) Source #

If non-empty, the name of an index on table. This index is used instead of the table primary key when interpreting key_set and sorting result rows. See key_set for further information.

rrTable :: Lens' ReadRequest (Maybe Text) Source #

Required. The name of the table in the database to be read.

rrPartitionToken :: Lens' ReadRequest (Maybe ByteString) Source #

If present, results will be restricted to the specified partition previously created using PartitionRead(). There must be an exact match for the values of fields common to this message and the PartitionReadRequest message used to create this partition_token.

InstanceState

data InstanceState Source #

Output only. The current instance state. For CreateInstance, the state must be either omitted or set to `CREATING`. For UpdateInstance, the state must be either omitted or set to `READY`.

Constructors

ISStateUnspecified

STATE_UNSPECIFIED Not specified.

ISCreating

CREATING The instance is still being created. Resources may not be available yet, and operations such as database creation may not work.

ISReady

READY The instance is fully created and ready to do work such as creating databases.

Instances
Enum InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Eq InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Data InstanceState 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) -> InstanceState -> c InstanceState #

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

toConstr :: InstanceState -> Constr #

dataTypeOf :: InstanceState -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Read InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Show InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Generic InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

Associated Types

type Rep InstanceState :: Type -> Type #

Hashable InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

ToJSON InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromJSON InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

FromHttpApiData InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

ToHttpApiData InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep InstanceState Source # 
Instance details

Defined in Network.Google.Spanner.Types.Sum

type Rep InstanceState = D1 (MetaData "InstanceState" "Network.Google.Spanner.Types.Sum" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ISStateUnspecified" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "ISCreating" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ISReady" PrefixI False) (U1 :: Type -> Type)))

Session

data Session Source #

A session in the Cloud Spanner API.

See: session smart constructor.

Instances
Eq Session Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

Data Session 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) -> Session -> c Session #

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

toConstr :: Session -> Constr #

dataTypeOf :: Session -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Session Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Session Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Session :: Type -> Type #

Methods

from :: Session -> Rep Session x #

to :: Rep Session x -> Session #

ToJSON Session Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Session Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Session Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Session = D1 (MetaData "Session" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "Session'" PrefixI True) ((S1 (MetaSel (Just "_sApproximateLastUseTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: S1 (MetaSel (Just "_sName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_sLabels") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SessionLabels)) :*: S1 (MetaSel (Just "_sCreateTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')))))

session :: Session Source #

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

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

sApproximateLastUseTime :: Lens' Session (Maybe UTCTime) Source #

Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.

sName :: Lens' Session (Maybe Text) Source #

The name of the session. This is always system-assigned; values provided when creating a session are ignored.

sLabels :: Lens' Session (Maybe SessionLabels) Source #

The labels for the session. * 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 session. See https://goo.gl/xmQnxf for more information on and examples of labels.

sCreateTime :: Lens' Session (Maybe UTCTime) Source #

Output only. The timestamp when the session is created.

OperationResponse

data 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`.

See: operationResponse smart constructor.

Instances
Eq OperationResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data OperationResponse 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) -> OperationResponse -> c OperationResponse #

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

toConstr :: OperationResponse -> Constr #

dataTypeOf :: OperationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show OperationResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic OperationResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep OperationResponse :: Type -> Type #

ToJSON OperationResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON OperationResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep OperationResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

operationResponse Source #

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

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

orAddtional :: Lens' OperationResponse (HashMap Text JSONValue) Source #

Properties of the object. Contains field 'type with type URL.

ReadOnly

data ReadOnly Source #

Message type to initiate a read-only transaction.

See: readOnly smart constructor.

Instances
Eq ReadOnly Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ReadOnly 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) -> ReadOnly -> c ReadOnly #

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

toConstr :: ReadOnly -> Constr #

dataTypeOf :: ReadOnly -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ReadOnly Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ReadOnly Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ReadOnly :: Type -> Type #

Methods

from :: ReadOnly -> Rep ReadOnly x #

to :: Rep ReadOnly x -> ReadOnly #

ToJSON ReadOnly Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ReadOnly Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ReadOnly Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ReadOnly = D1 (MetaData "ReadOnly" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ReadOnly'" PrefixI True) ((S1 (MetaSel (Just "_roReadTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: (S1 (MetaSel (Just "_roExactStaleness") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GDuration)) :*: S1 (MetaSel (Just "_roMaxStaleness") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GDuration)))) :*: (S1 (MetaSel (Just "_roStrong") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_roMinReadTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: S1 (MetaSel (Just "_roReturnReadTimestamp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))

readOnly :: ReadOnly Source #

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

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

roReadTimestamp :: Lens' ReadOnly (Maybe UTCTime) Source #

Executes all reads at the given timestamp. Unlike other modes, reads at a specific timestamp are repeatable; the same read at the same timestamp always returns the same data. If the timestamp is in the future, the read will block until the specified timestamp, modulo the read's deadline. Useful for large scale consistent reads such as mapreduces, or for coordinating many reads against a consistent snapshot of the data. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.

roExactStaleness :: Lens' ReadOnly (Maybe Scientific) Source #

Executes all reads at a timestamp that is `exact_staleness` old. The timestamp is chosen soon after the read is started. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading at nearby replicas without the distributed timestamp negotiation overhead of `max_staleness`.

roMaxStaleness :: Lens' ReadOnly (Maybe Scientific) Source #

Read data at a timestamp >= `NOW - max_staleness` seconds. Guarantees that all writes that have committed more than the specified number of seconds ago are visible. Because Cloud Spanner chooses the exact timestamp, this mode works even if the client's local clock is substantially skewed from Cloud Spanner commit timestamps. Useful for reading the freshest data available at a nearby replica, while bounding the possible staleness if the local replica has fallen behind. Note that this option can only be used in single-use transactions.

roStrong :: Lens' ReadOnly (Maybe Bool) Source #

Read at a timestamp where all previously committed transactions are visible.

roMinReadTimestamp :: Lens' ReadOnly (Maybe UTCTime) Source #

Executes all reads at a timestamp >= `min_read_timestamp`. This is useful for requesting fresher data than some previous read, or data that is fresh enough to observe the effects of some previously committed transaction whose timestamp is known. Note that this option can only be used in single-use transactions. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.

roReturnReadTimestamp :: Lens' ReadOnly (Maybe Bool) Source #

If true, the Cloud Spanner-selected read timestamp is included in the Transaction message that describes the transaction.

ResultSetMetadata

data ResultSetMetadata Source #

Metadata about a ResultSet or PartialResultSet.

See: resultSetMetadata smart constructor.

Instances
Eq ResultSetMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ResultSetMetadata 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) -> ResultSetMetadata -> c ResultSetMetadata #

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

toConstr :: ResultSetMetadata -> Constr #

dataTypeOf :: ResultSetMetadata -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ResultSetMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ResultSetMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ResultSetMetadata :: Type -> Type #

ToJSON ResultSetMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ResultSetMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ResultSetMetadata Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ResultSetMetadata = D1 (MetaData "ResultSetMetadata" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ResultSetMetadata'" PrefixI True) (S1 (MetaSel (Just "_rsmRowType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe StructType)) :*: S1 (MetaSel (Just "_rsmTransaction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Transaction))))

resultSetMetadata :: ResultSetMetadata Source #

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

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

rsmRowType :: Lens' ResultSetMetadata (Maybe StructType) Source #

Indicates the field names and types for the rows in the result set. For example, a SQL query like `"SELECT UserId, UserName FROM Users"` could return a `row_type` value like: "fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]

rsmTransaction :: Lens' ResultSetMetadata (Maybe Transaction) Source #

If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.

Delete'

data Delete' Source #

Arguments to delete operations.

See: delete' smart constructor.

Instances
Eq Delete' Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

(==) :: Delete' -> Delete' -> Bool #

(/=) :: Delete' -> Delete' -> Bool #

Data Delete' 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) -> Delete' -> c Delete' #

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

toConstr :: Delete' -> Constr #

dataTypeOf :: Delete' -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Delete' Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Delete' Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Delete' :: Type -> Type #

Methods

from :: Delete' -> Rep Delete' x #

to :: Rep Delete' x -> Delete' #

ToJSON Delete' Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Delete' Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Delete' Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

delete' :: Delete' Source #

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

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

dKeySet :: Lens' Delete' (Maybe KeySet) Source #

Required. The primary keys of the rows within table to delete. Delete is idempotent. The transaction will succeed even if some or all rows do not exist.

dTable :: Lens' Delete' (Maybe Text) Source #

Required. The table whose rows will be deleted.

UpdateInstanceRequest

data UpdateInstanceRequest Source #

The request for UpdateInstance.

See: updateInstanceRequest smart constructor.

Instances
Eq UpdateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data UpdateInstanceRequest 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) -> UpdateInstanceRequest -> c UpdateInstanceRequest #

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

toConstr :: UpdateInstanceRequest -> Constr #

dataTypeOf :: UpdateInstanceRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic UpdateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep UpdateInstanceRequest :: Type -> Type #

ToJSON UpdateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON UpdateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep UpdateInstanceRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

updateInstanceRequest :: UpdateInstanceRequest Source #

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

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

uirFieldMask :: Lens' UpdateInstanceRequest (Maybe GFieldMask) Source #

Required. A mask specifying which fields in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.instance] should be updated. The field mask must always be specified; this prevents any future fields in [][google.spanner.admin.instance.v1.Instance] from being erased accidentally by clients that do not know about them.

uirInstance :: Lens' UpdateInstanceRequest (Maybe Instance) Source #

Required. The instance to update, which must always include the instance name. Otherwise, only fields mentioned in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be included.

ResultSetStatsQueryStats

data 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" }

See: resultSetStatsQueryStats smart constructor.

Instances
Eq ResultSetStatsQueryStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ResultSetStatsQueryStats 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) -> ResultSetStatsQueryStats -> c ResultSetStatsQueryStats #

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

toConstr :: ResultSetStatsQueryStats -> Constr #

dataTypeOf :: ResultSetStatsQueryStats -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ResultSetStatsQueryStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ResultSetStatsQueryStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ResultSetStatsQueryStats :: Type -> Type #

ToJSON ResultSetStatsQueryStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ResultSetStatsQueryStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ResultSetStatsQueryStats Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

resultSetStatsQueryStats Source #

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

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

StatementParams

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

See: statementParams smart constructor.

Instances
Eq StatementParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data StatementParams 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) -> StatementParams -> c StatementParams #

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

toConstr :: StatementParams -> Constr #

dataTypeOf :: StatementParams -> DataType #

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

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

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

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

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

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

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

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

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

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

Show StatementParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic StatementParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep StatementParams :: Type -> Type #

ToJSON StatementParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON StatementParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep StatementParams Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

statementParams Source #

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

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

TransactionSelector

data TransactionSelector Source #

This message is used to select the transaction in which a Read or ExecuteSql call runs. See TransactionOptions for more information about transactions.

See: transactionSelector smart constructor.

Instances
Eq TransactionSelector Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data TransactionSelector 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) -> TransactionSelector -> c TransactionSelector #

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

toConstr :: TransactionSelector -> Constr #

dataTypeOf :: TransactionSelector -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TransactionSelector Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic TransactionSelector Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep TransactionSelector :: Type -> Type #

ToJSON TransactionSelector Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON TransactionSelector Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep TransactionSelector Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep TransactionSelector = D1 (MetaData "TransactionSelector" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "TransactionSelector'" PrefixI True) (S1 (MetaSel (Just "_tsBegin") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TransactionOptions)) :*: (S1 (MetaSel (Just "_tsId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes)) :*: S1 (MetaSel (Just "_tsSingleUse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TransactionOptions)))))

transactionSelector :: TransactionSelector Source #

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

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

tsBegin :: Lens' TransactionSelector (Maybe TransactionOptions) Source #

Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in ResultSetMetadata.transaction, which is a Transaction.

tsId :: Lens' TransactionSelector (Maybe ByteString) Source #

Execute the read or SQL query in a previously-started transaction.

tsSingleUse :: Lens' TransactionSelector (Maybe TransactionOptions) Source #

Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.

ListInstanceConfigsResponse

data ListInstanceConfigsResponse Source #

The response for ListInstanceConfigs.

See: listInstanceConfigsResponse smart constructor.

Instances
Eq ListInstanceConfigsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data ListInstanceConfigsResponse 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) -> ListInstanceConfigsResponse -> c ListInstanceConfigsResponse #

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

toConstr :: ListInstanceConfigsResponse -> Constr #

dataTypeOf :: ListInstanceConfigsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ListInstanceConfigsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic ListInstanceConfigsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep ListInstanceConfigsResponse :: Type -> Type #

ToJSON ListInstanceConfigsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON ListInstanceConfigsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep ListInstanceConfigsResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

listInstanceConfigsResponse :: ListInstanceConfigsResponse Source #

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

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

licrNextPageToken :: Lens' ListInstanceConfigsResponse (Maybe Text) Source #

`next_page_token` can be sent in a subsequent ListInstanceConfigs call to fetch more of the matching instance configurations.

licrInstanceConfigs :: Lens' ListInstanceConfigsResponse [InstanceConfig] Source #

The list of requested instance configurations.

Binding

data Binding Source #

Associates `members` with a `role`.

See: binding smart constructor.

Instances
Eq Binding Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Methods

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

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

Data Binding 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) -> Binding -> c Binding #

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

toConstr :: Binding -> Constr #

dataTypeOf :: Binding -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Binding Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Binding Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Binding :: Type -> Type #

Methods

from :: Binding -> Rep Binding x #

to :: Rep Binding x -> Binding #

ToJSON Binding Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Binding Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Binding Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

binding :: Binding Source #

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

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

bMembers :: Lens' Binding [Text] Source #

Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice'gmail.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app'appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins'example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.

bRole :: Lens' Binding (Maybe Text) Source #

Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.

bCondition :: Lens' Binding (Maybe Expr) Source #

Unimplemented. The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.

PartitionResponse

data PartitionResponse Source #

The response for PartitionQuery or PartitionRead

See: partitionResponse smart constructor.

Instances
Eq PartitionResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PartitionResponse 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) -> PartitionResponse -> c PartitionResponse #

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

toConstr :: PartitionResponse -> Constr #

dataTypeOf :: PartitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PartitionResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PartitionResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PartitionResponse :: Type -> Type #

ToJSON PartitionResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PartitionResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionResponse Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionResponse = D1 (MetaData "PartitionResponse" "Network.Google.Spanner.Types.Product" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "PartitionResponse'" PrefixI True) (S1 (MetaSel (Just "_prPartitions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Partition])) :*: S1 (MetaSel (Just "_prTransaction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Transaction))))

partitionResponse :: PartitionResponse Source #

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

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

prPartitions :: Lens' PartitionResponse [Partition] Source #

Partitions created by this request.

prTransaction :: Lens' PartitionResponse (Maybe Transaction) Source #

Transaction created by this request.

PartitionQueryRequest

data PartitionQueryRequest Source #

The request for PartitionQuery

See: partitionQueryRequest smart constructor.

Instances
Eq PartitionQueryRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data PartitionQueryRequest 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) -> PartitionQueryRequest -> c PartitionQueryRequest #

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

toConstr :: PartitionQueryRequest -> Constr #

dataTypeOf :: PartitionQueryRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PartitionQueryRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic PartitionQueryRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep PartitionQueryRequest :: Type -> Type #

ToJSON PartitionQueryRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON PartitionQueryRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep PartitionQueryRequest Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

partitionQueryRequest :: PartitionQueryRequest Source #

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

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

pqrParamTypes :: Lens' PartitionQueryRequest (Maybe PartitionQueryRequestParamTypes) 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 query parameters. See the definition of Type for more information about SQL types.

pqrPartitionOptions :: Lens' PartitionQueryRequest (Maybe PartitionOptions) Source #

Additional options that affect how many partitions are created.

pqrParams :: Lens' PartitionQueryRequest (Maybe 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.

pqrTransaction :: Lens' PartitionQueryRequest (Maybe TransactionSelector) Source #

Read only snapshot transactions are supported, read/write and single use transactions are not.

pqrSQL :: Lens' PartitionQueryRequest (Maybe Text) Source #

The query request to generate partitions for. The request will fail if the query is not root partitionable. The query plan of a root partitionable query has a single distributed union operator. A distributed union operator conceptually divides one or more tables into multiple splits, remotely evaluates a subquery independently on each split, and then unions all results. This must not contain DML commands, such as INSERT, UPDATE, or DELETE. Use ExecuteStreamingSql with a PartitionedDml transaction for large, partition-friendly DML operations.

QueryPlan

data QueryPlan Source #

Contains an ordered list of nodes appearing in the query plan.

See: queryPlan smart constructor.

Instances
Eq QueryPlan Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data QueryPlan 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) -> QueryPlan -> c QueryPlan #

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

toConstr :: QueryPlan -> Constr #

dataTypeOf :: QueryPlan -> DataType #

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

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

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

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

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

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

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

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

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

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

Show QueryPlan Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic QueryPlan Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep QueryPlan :: Type -> Type #

ToJSON QueryPlan Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON QueryPlan Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep QueryPlan Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

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

queryPlan :: QueryPlan Source #

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

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

qpPlanNodes :: Lens' QueryPlan [PlanNode] Source #

The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each PlanNode's `id` corresponds to its index in `plan_nodes`.

Instance

data Instance Source #

An isolated set of Cloud Spanner resources on which databases can be hosted.

See: instance' smart constructor.

Instances
Eq Instance Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Data Instance 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) -> Instance -> c Instance #

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

toConstr :: Instance -> Constr #

dataTypeOf :: Instance -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Instance Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Generic Instance Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

Associated Types

type Rep Instance :: Type -> Type #

Methods

from :: Instance -> Rep Instance x #

to :: Rep Instance x -> Instance #

ToJSON Instance Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

FromJSON Instance Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

type Rep Instance Source # 
Instance details

Defined in Network.Google.Spanner.Types.Product

instance' :: Instance Source #

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

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

iState :: Lens' Instance (Maybe InstanceState) Source #

Output only. The current instance state. For CreateInstance, the state must be either omitted or set to `CREATING`. For UpdateInstance, the state must be either omitted or set to `READY`.

iConfig :: Lens' Instance (Maybe Text) Source #

Required. The name of the instance's configuration. Values are of the form `projects//instanceConfigs/`. See also InstanceConfig and ListInstanceConfigs.

iNodeCount :: Lens' Instance (Maybe Int32) Source #

Required. The number of nodes allocated to this instance. This may be zero in API responses for instances that are not yet in state `READY`. See the documentation for more information about nodes.

iName :: Lens' Instance (Maybe Text) Source #

Required. A unique identifier for the instance, which cannot be changed after the instance is created. Values are of the form `projects//instances/a-z*[a-z0-9]`. The final segment of the name must be between 2 and 64 characters in length.

iDisplayName :: Lens' Instance (Maybe Text) Source #

Required. The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.

iLabels :: Lens' Instance (Maybe 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.