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 Google Cloud Spanner C++ library, which serves as a wrapper for various types of data modifications in Cloud Spanner."],["The latest release candidate for the C++ library is version 2.37.0-rc, and the page lists available documentation for multiple previous versions, down to 2.11.0, allowing users to select the documentation of the specific version they require."],["The `Mutation` class can be used to modify data using the mutation API instead of using Data Manipulation Language (DML) based APIs."],["Users can construct `Mutation` objects using builders like `InsertMutationBuilder` or `UpdateMutationBuilder`."],["The `Mutation` class includes constructors for creating an empty mutation, moving, and copying, as well as operators for assignment, and functions for converting to the underlying proto."]]],[]]