Improvements to the CrudModel

The new data of modified rows is now stored directly within the row_mapping
also changed how new rows are handled so the new empty row for inserting
is not a special case but is part of the list.
This commit is contained in:
eelke 2022-01-22 16:22:29 +01:00
parent a7f247bdee
commit 06504ecc1f
9 changed files with 213 additions and 317 deletions

View file

@ -41,6 +41,8 @@ namespace Pgsql {
{
return add(s ? s->c_str() : nullptr, oid);
}
void addParams(const Params &params);
//void addBinary(const char *data, int length, Oid oid);
void clear();
@ -62,7 +64,7 @@ namespace Pgsql {
}
/* Assumes other lists already have been copied */
void copyValues(const t_paramValues &r);
void appendValues(const t_paramValues &r);
std::vector<Oid> m_paramTypes;
t_paramValues m_paramValues;