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:
parent
8c077b3d5f
commit
2d962334da
28 changed files with 881 additions and 428 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue