Miscellaneous changes. Including a copy action.

This commit is contained in:
Eelke Klein 2017-02-04 11:55:49 +01:00
parent 242f5464df
commit 4a2c6cc396
19 changed files with 147 additions and 43 deletions

View file

@ -20,6 +20,7 @@ public:
t_Types::const_iterator end() const { return m_types.end(); }
void clear();
int count() const { return (int)m_types.size(); }
std::string getLoadQuery();
void load(const Pgsql::Result &res);
@ -29,6 +30,7 @@ public:
*/
const PgType& getTypeByOid(Oid oid) const;
const PgType& getTypeByName(const QString &name) const;
const PgType& getTypeByIdx(int idx) const;
private:
PgType m_invalidType; ///< default constructed object for when a non existent type is being retrieved.
t_Types m_types; // Keep sorted by Oid