QgsRelation::FieldPair class

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.

Constructors, destructors, conversion operators

FieldPair() defaulted
Default constructor: NULL strings.
FieldPair(const QString& referencingField, const QString& referencedField)
Constructor which takes two fields.

Public functions

auto referencedField() const -> QString
Gets the name of the referenced (parent) field.
auto referencingField() const -> QString
Gets the name of the referencing (child) field.