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 details the `Mutation` class within the Google Cloud Spanner C++ client library, serving as a wrapper for different types of mutations used in the Cloud Spanner Mutation API."],["The latest version available is `2.37.0-rc`, and the page provides access to documentation for a range of prior versions, from `2.36.0` down to `2.11.0`."],["The `Mutation` class supports creating empty mutations, although they are not directly usable with the API, and also contains methods to convert the mutation to its underlying proto representation using `as_proto()`."],["The page documents the constructors, `Mutation()` and copy/move, as well as copy/move assignment operators, `operator=`, of the class."],["The content on this page is related to using Data Manipulation Language (DML) based APIs, the application describes data modification using a data structure instead of a SQL statement, through the use of mutation API."]]],[]]