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 webpage provides documentation for the `Mutation` class within the Cloud Spanner C++ library, with versions ranging from 2.11.0 to 2.37.0-rc."],["The `Mutation` class serves as a wrapper for Cloud Spanner's mutation API, allowing data modifications to be defined through a data structure rather than SQL statements."],["Users can create `Mutation` objects using builders like `InsertMutationBuilder` and `UpdateMutationBuilder`, and the documentation notes that creating an empty `Mutation` object with its default constructor will result in an object that is unusable with the Cloud Spanner API."],["The documentation includes details on the class constructors, move/copy assignment operators, and methods `as_proto()` for converting the mutation to its underlying proto representation, in both constant and non-constant forms."],["The document mentions the mutation API, and for further details it links to \u003chttps://cloud.google.com/spanner/docs/modify-mutation-api\u003e."]]],[]]