pg_trigger
This commit is contained in:
parent
ae86fef2b4
commit
7c7e72ae14
5 changed files with 90 additions and 2 deletions
21
pglablib/PgTriggerContainer.cpp
Normal file
21
pglablib/PgTriggerContainer.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include "PgTriggerContainer.h"
|
||||
#include "Pgsql_Connection.h"
|
||||
#include "Pgsql_Col.h"
|
||||
|
||||
|
||||
std::string PgTriggerContainer::getLoadQuery() const
|
||||
{
|
||||
return R"(SELECT *
|
||||
FROM pg_trigger
|
||||
WHERE NOT tgisinternal)";
|
||||
}
|
||||
|
||||
PgTrigger PgTriggerContainer::loadElem(const Pgsql::Row &row)
|
||||
{
|
||||
Pgsql::Col col(row);
|
||||
PgTrigger v;
|
||||
col >> v.tgrelid >> v.tgname >> v.tgfoid >> v.tgtype >> v.tgenabled >> v.tgisinternal >> v.tgconstrrelid
|
||||
>> v.tgconstrindid >> v.tgconstraint >> v.tgdeferrable >> v.tginitdeferred >> v.tgnargs >> v.tgattr
|
||||
>> v.tgargs >> v.tgqual;
|
||||
return v;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue