PgAttribute loading + ColummnTableModel
Required enchancement to PgContainer to make multifield key work.
This commit is contained in:
parent
f9caadb59e
commit
e9d72d391d
32 changed files with 698 additions and 99 deletions
|
|
@ -3,19 +3,41 @@
|
|||
|
||||
#include <QString>
|
||||
#include <libpq-fe.h>
|
||||
#include "Pgsql_Value.h"
|
||||
|
||||
enum class TypCategory {
|
||||
Array,
|
||||
Boolean,
|
||||
Composite,
|
||||
DateTime,
|
||||
Enum,
|
||||
Geometric,
|
||||
NetworkAddress,
|
||||
Numeric,
|
||||
Pseudo,
|
||||
Range,
|
||||
String,
|
||||
Timespan,
|
||||
UserDefined,
|
||||
BitString,
|
||||
Unknown
|
||||
};
|
||||
|
||||
void operator<<(TypCategory &s, const Pgsql::Value &v);
|
||||
|
||||
|
||||
class PgType {
|
||||
public:
|
||||
PgType();
|
||||
|
||||
Oid oid = InvalidOid;
|
||||
QString typname;//"name";"NO"
|
||||
QString name;//"name";"NO"
|
||||
Oid typnamespace = InvalidOid;//"oid";"NO"
|
||||
Oid typowner = InvalidOid;//"oid";"NO"
|
||||
short typlen = -1;//"smallint";"NO"
|
||||
bool typbyval = false;//"boolean";"NO"
|
||||
QString typtype;//""char"";"NO"
|
||||
QString typcategory;//""char"";"NO"
|
||||
Oid owner = InvalidOid;//"oid";"NO"
|
||||
short len = -1;//"smallint";"NO"
|
||||
bool byval = false;//"boolean";"NO"
|
||||
QString type;//""char"";"NO"
|
||||
TypCategory category;//""char"";"NO"
|
||||
bool typispreferred = false;//"boolean";"NO"
|
||||
bool typisdefined = false;//"boolean";"NO"
|
||||
QString typdelim;//""char"";"NO"
|
||||
|
|
@ -41,7 +63,7 @@ public:
|
|||
QString typacl;//"ARRAY";"YES"
|
||||
|
||||
bool operator==(Oid _oid) const { return oid == _oid; }
|
||||
bool operator==(const QString &n) const { return typname == n; }
|
||||
bool operator==(const QString &n) const { return name == n; }
|
||||
bool operator<(Oid _oid) const { return oid < _oid; }
|
||||
bool operator<(const PgType &rhs) const { return oid < rhs.oid; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue