In addition to the Data Manipulation Language (DML) based APIs, Cloud Spanner supports the mutation API, where the application describes data modification using a data structure instead of a SQL statement.
This class serves as a wrapper for all mutations types. Use the builders, such as InsertMutationBuilder or UpdateMutationBuilder to create objects of this class.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["This webpage provides documentation for the `Mutation` class within the Cloud Spanner C++ client library, detailing various versions and their respective documentation."],["Version 2.37.0-rc is the most recent, with a history of versions going back to 2.11.0, that are listed for users."],["The `Mutation` class acts as a wrapper for Cloud Spanner mutations, enabling data modification using a data structure rather than SQL."],["It offers constructors for creating empty or copied mutations and overloads for managing mutations."],["The class can convert the mutation object to its underlying protocol buffer format via the `as_proto()` function."]]],[]]