Reorganize files in pglablib
The enitities and containers of the catalog now go into catalog subfolder Models go into model
This commit is contained in:
parent
56cbeea183
commit
f0c1035378
121 changed files with 226 additions and 183 deletions
17
pglablib/catalog/PgAmContainer.cpp
Normal file
17
pglablib/catalog/PgAmContainer.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "PgAmContainer.h"
|
||||
#include "Pgsql_Col.h"
|
||||
|
||||
std::string PgAmContainer::getLoadQuery() const
|
||||
{
|
||||
std::string q = "SELECT oid, amname FROM pg_am";
|
||||
return q;
|
||||
}
|
||||
|
||||
PgAm PgAmContainer::loadElem(const Pgsql::Row &row)
|
||||
{
|
||||
Pgsql::Col col(row);
|
||||
PgAm v;
|
||||
col >> v.oid >> v.name;
|
||||
|
||||
return v;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue