Updating rows kinda works.

Blocking calls are still used.
This commit is contained in:
eelke 2018-02-18 07:15:43 +01:00
parent 99d738ee65
commit 628c16e2f4
10 changed files with 179 additions and 81 deletions

View file

@ -35,18 +35,19 @@ FROM pg_constraint)__";
PgConstraint PgConstraintContainer::loadElem(const Pgsql::Row &row)
{
Pgsql::Col col(row);
using namespace Pgsql;
Col col(row);
PgConstraint v;
col >> v.oid >> v.name >> v.connamespace >> v.type >> v.deferrable
>> v.deferred >> v.validated >> v.relid >> v.typid >> v.indid
>> v.frelid >> v.fupdtype >> v.fdeltype >> v.fmatchtype
>> v.islocal >> v.inhcount >> v.noinherit;
col.getAsArray<int16_t>(std::back_inserter(v.key));
col.getAsArray<int16_t>(std::back_inserter(v.fkey));
col.getAsArray<Oid>(std::back_inserter(v.pfeqop));
col.getAsArray<Oid>(std::back_inserter(v.ppeqop));
col.getAsArray<Oid>(std::back_inserter(v.ffeqop));
col.getAsArray<Oid>(std::back_inserter(v.exclop));
col.getAsArray<int16_t>(std::back_inserter(v.key), NullHandling::Ignore);
col.getAsArray<int16_t>(std::back_inserter(v.fkey), NullHandling::Ignore);
col.getAsArray<Oid>(std::back_inserter(v.pfeqop), NullHandling::Ignore);
col.getAsArray<Oid>(std::back_inserter(v.ppeqop), NullHandling::Ignore);
col.getAsArray<Oid>(std::back_inserter(v.ffeqop), NullHandling::Ignore);
col.getAsArray<Oid>(std::back_inserter(v.exclop), NullHandling::Ignore);
col >> v.bin >> v.src >> v.definition;
return v;
}