26#ifndef ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_DATABASE_JSON_MAPPER_INSERT_H_
27#define ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_DATABASE_JSON_MAPPER_INSERT_H_
29#ifdef RAPIDJSON_NO_SIZETYPEDEFINE
33#include <rapidjson/document.h>
92 std::shared_ptr<Table>
table,
const Column *generated_column,
108 std::shared_ptr<Table>
table,
109 const Column *generated_column,
126 std::shared_ptr<JsonMappingUpdater::Operation> parent,
130 std::shared_ptr<JsonMappingUpdater::Operation> parent,
Definition: object_row_ownership.h:45
AutoIncRowInsert(std::shared_ptr< Operation > parent, std::shared_ptr< Table > table, const Column *generated_column, const ObjectRowOwnership &row_ownership, bool upsert)
Definition: insert.h:91
void on_post_insert(MySQLSession *session) override
Definition: insert.cc:157
const Column * gen_id_column_
Definition: insert.h:102
std::shared_ptr< Operation > parent() const
Definition: change.h:82
const std::shared_ptr< Table > & table() const
Definition: change.h:80
static void set_generate_uuid(std::function< mysqlrouter::sqlstring(MySQLSession *)> fn)
Definition: insert.cc:170
ReverseUuidRowInsert(std::shared_ptr< Operation > parent, std::shared_ptr< Table > table, const Column *generated_column, const ObjectRowOwnership &row_ownership, bool upsert)
Definition: insert.h:107
void on_pre_insert(MySQLSession *session) override
Definition: insert.cc:178
const Column * gen_id_column_
Definition: insert.h:122
bool upsert_
Definition: insert.h:86
virtual void on_pre_insert(MySQLSession *)
Definition: insert.h:65
void resolve_references_from_this()
virtual void on_post_insert(MySQLSession *)
Definition: insert.h:66
void resolve_references_to_this()
void process_to_many(const ForeignKeyReference &fk, JSONInputArray input) override
Definition: insert.cc:76
mysqlrouter::sqlstring insert_sql() const
Definition: insert.cc:126
std::shared_ptr< RowChangeOperation > add_dummy_update_referenced_from_this(const ForeignKeyReference &fk, const PrimaryKeyColumnValues &pk) override
Definition: insert.cc:116
RowInsert(std::shared_ptr< Operation > parent, std::shared_ptr< Table > table, const ObjectRowOwnership &row_ownership, bool upsert)
Definition: insert.h:59
bool references_from_this_resolved_
Definition: insert.h:85
void run(MySQLSession *session) override
Definition: insert.cc:52
bool references_to_this_resolved_
Definition: insert.h:84
void process(JSONInputObject input) override
Definition: insert.cc:70
Definition: mysql_session.h:157
Definition: utils_sqlstring.h:67
Define rapidjson::SizeType to be std::uint64_t.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
entry::ForeignKeyReference ForeignKeyReference
Definition: select.h:54
std::shared_ptr< RowInsert > make_row_upsert(std::shared_ptr< JsonMappingUpdater::Operation > parent, std::shared_ptr< Table > table, const ObjectRowOwnership &row_ownership)
Definition: insert.cc:224
entry::Column Column
Definition: select.h:53
std::shared_ptr< RowInsert > make_row_insert(std::shared_ptr< JsonMappingUpdater::Operation > parent, std::shared_ptr< Table > table, const ObjectRowOwnership &row_ownership)
Definition: insert.cc:218
std::map< std::string, mysqlrouter::sqlstring > PrimaryKeyColumnValues
Definition: select.h:43
Definition: authorize_manager.h:48