QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
|
Defines a relation between matching fields of the two involved tables of a relation. More...
#include <qgsrelation.h>
Public Member Functions | |
FieldPair ()=default | |
Default constructor: NULL strings. More... | |
FieldPair (const QString &referencingField, const QString &referencedField) | |
Constructor which takes two fields. More... | |
bool | operator== (const FieldPair &other) const |
QString | referencedField () const |
Gets the name of the referenced (parent) field. More... | |
QString | referencingField () const |
Gets the name of the referencing (child) field. More... | |
Defines a relation between matching fields of the two involved tables of a relation.
Often, a relation is only defined by just one FieldPair with the name of the foreign key column of the referencing (child) table as first element and the name of the primary key column of the referenced (parent) table as the second element.
Definition at line 88 of file qgsrelation.h.
|
default |
Default constructor: NULL strings.
|
inline |
Constructor which takes two fields.
Definition at line 95 of file qgsrelation.h.
|
inline |
Definition at line 103 of file qgsrelation.h.
|
inline |
Gets the name of the referenced (parent) field.
Definition at line 101 of file qgsrelation.h.
|
inline |
Gets the name of the referencing (child) field.
Definition at line 99 of file qgsrelation.h.