2018-09-02 10:30:30 +00:00
|
|
|
|
#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;
|
2018-11-17 19:38:07 +01:00
|
|
|
|
col >> v.oid >> v.name >> v.owner >> v.acl >> v.options;
|
2018-09-02 10:30:30 +00:00
|
|
|
|
return v;
|
|
|
|
|
|
}
|