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-04-09 UTC."],[[["This webpage provides documentation for the `Mutation` class within the Google Cloud Spanner C++ library, specifically detailing its use as a wrapper for the Cloud Spanner mutation API."],["The content covers various versions of the `Mutation` class, ranging from version 2.11.0 up to the latest release candidate, 2.37.0-rc, offering a history and access to different version docs."],["The `Mutation` class facilitates describing data modifications using a data structure instead of SQL statements, and builders like `InsertMutationBuilder` and `UpdateMutationBuilder` are used to create objects of this class."],["The documentation includes information on constructors, operators, and functions, such as `as_proto()`, which converts the mutation to its underlying protocol buffer format."],["The webpage links to the official Cloud Spanner mutation API documentation for additional context."]]],[]]