Module dbi - General Data Base Functions

The module dbi (data base interface) is the program interface to general data base functions. Most functions of the module are low-level functions, which you seldomly need. Their application requires a profound knowledge of the logics DataView uses to store data and structures in the data base.


Important functions

dal_dbi_get_ent_idn, dal_dbi_get_rel_idn, dal_dbi_get_typ_idn, dal_dbi_get_cns_idn
Returns the Ids of entities, relations, types and constraints from then DataView system tables T_ENTITY, T_ENT_REL, T_ENT_TYP and T_CONSTRAINT.

dal_dbi_get_ent_dat, dal_dbi_get_ref_dat, dal_dbi_get_agg_dat
Returns the tables and masks created for entities, relations and types.

dal_dbi_lck_elm, dal_dbi_fre_lck
Sets or removes all existing record locks or switches the locking release off for nested calls.

dal_dbi_del_lis
Finally deletes one or several records including all related records from the DataView data structure.


Functions must be used with great care

dal_dbi_set_del
Sets the reference check flag for controlling the DataView logics of deleting records finally. By default, DataView checks records to be deleted for dependent references and deletes, if present, all records in relation and type tables. If you deactivate this check, severe inconsistencies in the data model can be the result.

dal_dbi_mod_..., dal_dbi_unl_...
Changes or deletes entity-, relation-, type-, or constraint definitions in the local data dictionary.