GdaMetaTableForeignKey

This structure represents a foreign key constraint, its contents must not be modified.

Members

Variables

GdaReserved1
void* GdaReserved1;
GdaReserved2
void* GdaReserved2;
GdaReserved3
void* GdaReserved3;
GdaReserved4
void* GdaReserved4;
colsNb
int colsNb;

the size of the @fk_cols_array, @fk_names_array, @ref_pk_cols_array and @ref_pk_names_array arrays

declared
bool declared;
dependOn
GdaMetaDbObject* dependOn;

the #GdaMetaDbObject which is referenced by the foreign key

fkColsArray
int* fkColsArray;

the columns' indexes in @meta_table which participate in the constraint (WARNING: columns numbering here start at 1)

fkName
char* fkName;
fkNamesArray
char** fkNamesArray;

the columns' names in @meta_table which participate in the constraint

metaTable
GdaMetaDbObject* metaTable;

the #GdaMetaDbObject for which this structure represents a foreign key

onDeletePolicy
GdaMetaForeignKeyPolicy onDeletePolicy;
onUpdatePolicy
GdaMetaForeignKeyPolicy onUpdatePolicy;
refPkColsArray
int* refPkColsArray;

the columns' indexes in @depend_on which participate in the constraint (WARNING: columns numbering here start at 1)

refPkNamesArray
char** refPkNamesArray;

the columns' names in @depend_on which participate in the constraint