|
ITTIA DB SQL C API
5.4.0
|
#include <ittia/db.h>
Data Fields | |
| db_objname_t | fk_name [DB_INDEX_NAME_SIZE] |
| db_objname_t | ref_table [DB_TABLE_NAME_SIZE] |
| int8_t | match_option |
| int8_t | update_rule |
| int8_t | delete_rule |
| int8_t | deferrable |
| int8_t | check_time |
| int8_t | nfields |
| struct { | |
| db_fieldno_t org_field | |
| db_fieldno_t ref_field | |
| } | fields [DB_MAX_FOREIGNKEY_FIELD_COUNT] |
Foreign key definition.
| db_objname_t db_foreign_key_def_t::fk_name[DB_INDEX_NAME_SIZE] |
Name of the foreign key constraint.
Must be unique for each table.
| db_objname_t db_foreign_key_def_t::ref_table[DB_TABLE_NAME_SIZE] |
Name of the table referenced by the foreign key.
How to match multiple fields.
Action to apply when a referenced key is updated.
Action to apply when a referenced row is deleted.
Set whether the constraint can be deferred until commit.
Set whether the constraint is initially deferred until commit.
Number of fields in the foreign key.
Field number in the original table.
Field number in the referenced table.
| struct { ... } db_foreign_key_def_t::fields[ DB_MAX_FOREIGNKEY_FIELD_COUNT ] |
List of fields in the foreign key.