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-21 UTC."],[[["This page provides documentation for the `Mutation` class in the Cloud Spanner C++ library, serving as a wrapper for all mutation types within the Cloud Spanner mutation API."],["The `Mutation` class allows applications to describe data modifications using a data structure, which acts as an alternative to SQL statements with the Data Manipulation Language (DML) API."],["You can use `InsertMutationBuilder` or `UpdateMutationBuilder` to create objects of this `Mutation` class."],["The documentation includes various versions of the `Mutation` class, from version 2.11.0 up to the latest release candidate, 2.37.0-rc, with each version linking to their specific class."],["The `Mutation` class includes constructors, move and copy operators, as well as the `as_proto()` function for converting the mutation to the underlying proto."]]],[]]