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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[[["This webpage provides documentation for the `Mutation` class within the Cloud Spanner C++ library, specifically focusing on versions ranging from 2.11.0 to 2.37.0-rc, the latest being 2.37.0-rc."],["The `Mutation` class is a wrapper for the Cloud Spanner mutation API, allowing for data modifications via data structures instead of SQL statements."],["The mutation API offers ways to modify data, through data structures and not using SQL."],["The page includes constructors and operators for the `Mutation` class, detailing how to create and manage mutation objects."],["The `Mutation` class contains functions like `as_proto()`, which converts the mutation to its underlying protocol buffer representation."]]],[]]