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
23
pglablib/catalog/PgTablespaceContainer.cpp
Normal file
23
pglablib/catalog/PgTablespaceContainer.cpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include "PgTablespaceContainer.h"
|
||||
#include "Pgsql_Connection.h"
|
||||
#include "Pgsql_Col.h"
|
||||
#include "Pgsql_declare.h"
|
||||
#include "PgDatabaseCatalog.h"
|
||||
#include <iterator>
|
||||
|
||||
std::string PgTablespaceContainer::getLoadQuery() const
|
||||
{
|
||||
return
|
||||
R"__SQL__(
|
||||
SELECT oid, spcname, spcowner, spcacl, spcoptions
|
||||
FROM pg_tablespace
|
||||
)__SQL__";
|
||||
}
|
||||
|
||||
PgTablespace PgTablespaceContainer::loadElem(const Pgsql::Row &row)
|
||||
{
|
||||
Pgsql::Col col(row);
|
||||
PgTablespace v;
|
||||
col >> v.oid >> v.name >> v.owner >> v.acl >> v.options;
|
||||
return v;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue