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."],[[["The content provides documentation for different versions of the `Mutation` class in the Cloud Spanner C++ library, ranging from version 2.11.0 to the latest release candidate 2.37.0-rc."],["The `Mutation` class is a wrapper for Cloud Spanner mutations, offering an alternative to the Data Manipulation Language (DML) by representing data modifications through a data structure."],["The class documentation explains how to utilize the builders, such as `InsertMutationBuilder` or `UpdateMutationBuilder`, to construct `Mutation` objects."],["The documentation lists various constructors, operators, and functions, including `as_proto()`, that help manipulate the `Mutation` object and convert it into an underlying proto."],["The latest version supported in this document is 2.37.0-rc, and it supports versions down to 2.11.0, each version containing details on the cloud spanner mutation class."]]],[]]