Search code examples
spring-bootgoogle-cloud-spanner

What is muations in google cloud spanner?


I'm new to Google cloud Spanner, please help What is Mutation class. How mutation works? Please give me explanation because below link dosen't explained it properly [https://developers.google.com/resources/api-libraries/documentation/spanner/v1/java/latest/com/google/api/services/spanner/v1/model/Mutation.html]


Solution

  • As specified in the documentation:

    A mutation represents a sequence of inserts, updates, and deletes that Cloud Spanner applies atomically to different rows and tables in a Cloud Spanner database.

    You can also see in this link how to insert, update, and delete data using mutations, in order to know how it works.