The KeySet class is a regular type that represents a collection of Keys.
Users can construct a KeySet instance, then add Keys and ranges of Keys to the set. The caller is responsible for ensuring that all keys in a given KeySet instance contain the same number and types of values.
Users may also optionally construct an instance that represents all keys with KeySet::All().
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["This webpage details the `KeySet` class within the Google Cloud Spanner C++ library, used to represent collections of `Key` objects."],["The `KeySet` class allows users to construct a `KeySet` instance and populate it with individual `Key`s or ranges of `Key`s, ensuring that the `Key`s within a `KeySet` share the same number and types of values."],["A `KeySet` can represent all keys of a table or index using the `KeySet::All()` function, enabling operations like deleting all rows."],["The library provides functionalities for constructing, copying, and assigning `KeySet` instances, as well as methods for adding keys and key ranges via `AddKey` and `AddRange`."],["This page also contains links to past versions of the `KeySet` from 2.11.0 to 2.36.0, and has a link to the latest release candidate version 2.37.0-rc."]]],[]]