MySQL 8.0.40
Source Code Documentation
|
Header file for the Json_diff class. More...
#include <stddef.h>
#include <algorithm>
#include <memory>
#include <vector>
#include "sql-common/json_path.h"
#include "sql/mem_root_allocator.h"
#include "sql/psi_memory_key.h"
Go to the source code of this file.
Classes | |
class | Json_diff |
A class that represents a logical change to a JSON document. More... | |
class | Json_diff_vector |
Vector of logical diffs describing changes to a JSON column. More... | |
Enumerations | |
enum class | enum_json_diff_operation { REPLACE , INSERT , REMOVE } |
Enum that describes what kind of operation a Json_diff object represents. More... | |
enum class | enum_json_diff_status { SUCCESS , ERROR , REJECTED } |
The result of applying JSON diffs on a JSON value using apply_json_diffs(). More... | |
Functions | |
enum_json_diff_status | apply_json_diffs (Field_json *field, const Json_diff_vector *diffs) |
Apply a sequence of JSON diffs to the value stored in a JSON column. More... | |
Variables | |
static const int | JSON_DIFF_OPERATION_COUNT = 3 |
The number of elements of the enumeration above. More... | |
Header file for the Json_diff class.
The Json_diff class is used to represent a logical change in a JSON column, so that a replication master can send only what has changed, instead of sending the whole new value to the replication slave when a JSON column is updated.
|
strong |
Enum that describes what kind of operation a Json_diff object represents.
|
strong |
The result of applying JSON diffs on a JSON value using apply_json_diffs().
enum_json_diff_status apply_json_diffs | ( | Field_json * | field, |
const Json_diff_vector * | diffs | ||
) |
Apply a sequence of JSON diffs to the value stored in a JSON column.
field | the column to update |
diffs | the diffs to apply |
|
static |
The number of elements of the enumeration above.