Added list of databases and roles.

Roles works for atleast 9.3 and up.

Reorganizing code for communicating with database.
This commit is contained in:
eelke 2017-02-18 12:05:48 +01:00
parent 8c077b3d5f
commit 2d962334da
28 changed files with 881 additions and 428 deletions

View file

@ -2,7 +2,9 @@
#include "PgsqlConn.h"
#include <algorithm>
PgTypeContainer::PgTypeContainer() = default;
PgTypeContainer::PgTypeContainer(PgsqlDatabaseCatalogue *cat)
: PgContainer<PgType>(cat)
{}
//const PgType& PgTypeContainer::getTypeByOid(Oid oid) const
@ -41,7 +43,7 @@ std::string PgTypeContainer::getLoadQuery()
void PgTypeContainer::load(const Pgsql::Result &res)
{
const int n_rows = res.getRows();
const int n_rows = res.rows();
m_container.clear();
m_container.reserve(n_rows);
for (auto row : res) {