mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +01:00
761 lines
39 KiB
C
761 lines
39 KiB
C
/*
|
|
* PROGRAM: JRD Access Method
|
|
* MODULE: relations.h
|
|
* DESCRIPTION: System relation definitions
|
|
*
|
|
* The contents of this file are subject to the Interbase Public
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
*
|
|
* Software distributed under the License is distributed on an
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
* or implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code was created by Inprise Corporation
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
* Copyright (C) Inprise Corporation.
|
|
*
|
|
* All Rights Reserved.
|
|
* Contributor(s): ______________________________________.
|
|
*/
|
|
|
|
// Order of relations in this file affect their IDs,
|
|
// so please add new relations to the end of the list
|
|
|
|
// Relation 0 (RDB$PAGES)
|
|
RELATION(nam_pages, rel_pages, ODS_8_0, rel_persistent)
|
|
FIELD(f_pag_page, nam_p_number, fld_p_number, 0, ODS_8_0)
|
|
FIELD(f_pag_id, nam_r_id, fld_r_id, 0, ODS_8_0)
|
|
FIELD(f_pag_seq, nam_p_sequence, fld_p_sequence, 0, ODS_8_0)
|
|
FIELD(f_pag_type, nam_p_type, fld_p_type, 0, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 1 (RDB$DATABASE)
|
|
RELATION(nam_database, rel_database, ODS_8_0, rel_persistent)
|
|
FIELD(f_dat_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_dat_id, nam_r_id, fld_r_id, 0, ODS_8_0)
|
|
FIELD(f_dat_class, nam_class, fld_class, 1, ODS_8_0)
|
|
FIELD(f_dat_charset, nam_charset_name, fld_charset_name, 1, ODS_8_0)
|
|
FIELD(f_dat_linger, nam_linger, fld_linger, 1, ODS_12_0)
|
|
FIELD(f_dat_sql_security, nam_sql_security, fld_b_sql_security, 1, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 2 (RDB$FIELDS)
|
|
RELATION(nam_fields, rel_fields, ODS_8_0, rel_persistent)
|
|
FIELD(f_fld_name, nam_f_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_fld_qname, nam_q_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_fld_v_blr, nam_vl_blr, fld_validation, 1, ODS_8_0)
|
|
FIELD(f_fld_v_source, nam_vl_source, fld_source, 1, ODS_8_0)
|
|
FIELD(f_fld_computed, nam_computed, fld_value, 1, ODS_8_0)
|
|
FIELD(f_fld_csource, nam_c_source, fld_source, 1, ODS_8_0)
|
|
FIELD(f_fld_default, nam_default, fld_value, 1, ODS_8_0)
|
|
FIELD(f_fld_dsource, nam_d_source, fld_source, 1, ODS_8_0)
|
|
FIELD(f_fld_length, nam_f_length, fld_f_length, 1, ODS_8_0)
|
|
FIELD(f_fld_scale, nam_f_scale, fld_f_scale, 1, ODS_8_0)
|
|
FIELD(f_fld_type, nam_f_type, fld_f_type, 1, ODS_8_0)
|
|
FIELD(f_fld_sub_type, nam_f_sub_type, fld_sub_type, 1, ODS_8_0)
|
|
FIELD(f_fld_missing, nam_missing, fld_value, 1, ODS_8_0)
|
|
FIELD(f_fld_msource, nam_m_source, fld_source, 1, ODS_8_0)
|
|
FIELD(f_fld_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_fld_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
|
|
FIELD(f_fld_qheader, nam_q_header, fld_q_header, 1, ODS_8_0)
|
|
FIELD(f_fld_seg_len, nam_s_length, fld_s_length, 1, ODS_8_0)
|
|
FIELD(f_fld_estring, nam_edit_string, fld_edit_string, 1, ODS_8_0)
|
|
FIELD(f_fld_ext_length, nam_ext_length, fld_f_length, 1, ODS_8_0)
|
|
FIELD(f_fld_ext_scale, nam_ext_scale, fld_f_scale, 1, ODS_8_0)
|
|
FIELD(f_fld_ext_type, nam_ext_type, fld_f_type, 1, ODS_8_0)
|
|
FIELD(f_fld_dimensions, nam_dimensions, fld_dimensions, 1, ODS_8_0)
|
|
FIELD(f_fld_null_flag, nam_null_flag, fld_null_flag, 1, ODS_8_0)
|
|
FIELD(f_fld_char_length, nam_char_length, fld_f_length, 1, ODS_8_0)
|
|
FIELD(f_fld_coll_id, nam_collate_id, fld_collate_id, 1, ODS_8_0)
|
|
FIELD(f_fld_charset_id, nam_charset_id, fld_charset_id, 1, ODS_8_0)
|
|
FIELD(f_fld_precision, nam_f_precision, fld_f_precision, 1, ODS_10_0)
|
|
FIELD(f_fld_class, nam_class, fld_class, 1, ODS_12_0)
|
|
FIELD(f_fld_owner, nam_owner, fld_user, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 3 (RDB$INDEX_SEGMENTS)
|
|
RELATION(nam_i_segments, rel_segments, ODS_8_0, rel_persistent)
|
|
FIELD(f_seg_name, nam_i_name, fld_i_name, 1, ODS_8_0)
|
|
FIELD(f_seg_field, nam_f_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_seg_position, nam_f_position, fld_f_position, 1, ODS_8_0)
|
|
FIELD(f_seg_statistics, nam_statistics, fld_statistics, 1, ODS_11_0)
|
|
END_RELATION
|
|
|
|
// Relation 4 (RDB$INDICES)
|
|
RELATION(nam_indices, rel_indices, ODS_8_0, rel_persistent)
|
|
FIELD(f_idx_name, nam_i_name, fld_i_name, 1, ODS_8_0)
|
|
FIELD(f_idx_relation, nam_r_name, fld_r_name, 1, ODS_8_0)
|
|
FIELD(f_idx_id, nam_i_id, fld_i_id, 0, ODS_8_0)
|
|
FIELD(f_idx_flag, nam_un_flag, fld_flag_nullable, 1, ODS_8_0)
|
|
FIELD(f_idx_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_idx_count, nam_s_count, fld_s_count, 1, ODS_8_0)
|
|
FIELD(f_idx_inactive, nam_i_inactive, fld_flag_nullable, 1, ODS_8_0)
|
|
FIELD(f_idx_type, nam_i_type, fld_flag_nullable, 1, ODS_8_0)
|
|
FIELD(f_idx_foreign, nam_i_foreign, fld_r_name, 1, ODS_8_0)
|
|
FIELD(f_idx_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
|
|
FIELD(f_idx_exp_blr, nam_exp_blr, fld_value, 1, ODS_8_0)
|
|
FIELD(f_idx_exp_source, nam_exp_source, fld_source, 1, ODS_8_0)
|
|
FIELD(f_idx_statistics, nam_statistics, fld_statistics, 1, ODS_8_0)
|
|
FIELD(f_idx_cond_blr, nam_cond_blr, fld_value, 1, ODS_13_1)
|
|
FIELD(f_idx_cond_source, nam_cond_source, fld_source, 1, ODS_13_1)
|
|
END_RELATION
|
|
|
|
// Relation 5 (RDB$RELATION_FIELDS)
|
|
RELATION(nam_r_fields, rel_rfr, ODS_8_0, rel_persistent)
|
|
FIELD(f_rfr_fname, nam_f_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_rfr_rname, nam_r_name, fld_r_name, 1, ODS_8_0)
|
|
FIELD(f_rfr_sname, nam_f_source, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_rfr_qname, nam_q_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_rfr_base, nam_base, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_rfr_estring, nam_edit_string, fld_edit_string, 1, ODS_8_0)
|
|
FIELD(f_rfr_position, nam_f_position, fld_f_position, 1, ODS_8_0)
|
|
FIELD(f_rfr_qheader, nam_q_header, fld_q_header, 1, ODS_8_0)
|
|
FIELD(f_rfr_flag, nam_up_flag, fld_flag_nullable, 1, ODS_8_0)
|
|
FIELD(f_rfr_id, nam_f_id, fld_f_id, 0, ODS_8_0)
|
|
FIELD(f_rfr_context, nam_v_context, fld_context, 1, ODS_8_0)
|
|
FIELD(f_rfr_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_rfr_default, nam_default, fld_value, 1, ODS_8_0)
|
|
FIELD(f_rfr_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
|
|
FIELD(f_rfr_class, nam_class, fld_class, 1, ODS_8_0)
|
|
FIELD(f_rfr_complex, nam_cpx_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_rfr_null_flag, nam_null_flag, fld_null_flag, 1, ODS_8_0)
|
|
FIELD(f_rfr_dsource, nam_d_source, fld_source, 1, ODS_8_0)
|
|
FIELD(f_rfr_coll_id, nam_collate_id, fld_collate_id, 1, ODS_8_0)
|
|
FIELD(f_rfr_gen_name, nam_gen_name, fld_gen_name, 1, ODS_12_0)
|
|
FIELD(f_rfr_identity_type, nam_identity_type, fld_identity_type, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 6 (RDB$RELATIONS)
|
|
RELATION(nam_relations, rel_relations, ODS_8_0, rel_persistent)
|
|
FIELD(f_rel_blr, nam_v_blr, fld_v_blr, 1, ODS_8_0)
|
|
FIELD(f_rel_source, nam_v_source, fld_source, 1, ODS_8_0)
|
|
FIELD(f_rel_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_rel_id, nam_r_id, fld_r_id, 0, ODS_8_0)
|
|
FIELD(f_rel_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
|
|
FIELD(f_rel_key_len, nam_key_length, fld_key_length, 0, ODS_8_0)
|
|
FIELD(f_rel_format, nam_fmt, fld_format, 0, ODS_8_0)
|
|
FIELD(f_rel_field_id, nam_f_id, fld_f_id, 0, ODS_8_0)
|
|
FIELD(f_rel_name, nam_r_name, fld_r_name, 1, ODS_8_0)
|
|
FIELD(f_rel_class, nam_class, fld_class, 1, ODS_8_0)
|
|
FIELD(f_rel_ext_file, nam_ext_file, fld_file_name, 1, ODS_8_0)
|
|
FIELD(f_rel_runtime, nam_runtime, fld_runtime, 1, ODS_8_0)
|
|
FIELD(f_rel_ext_desc, nam_ext_desc, fld_ext_desc, 1, ODS_8_0)
|
|
FIELD(f_rel_owner, nam_owner, fld_user, 1, ODS_8_0)
|
|
FIELD(f_rel_def_class, nam_def_class, fld_class, 1, ODS_8_0)
|
|
FIELD(f_rel_flags, nam_flags, fld_flag_nullable, 0, ODS_8_0)
|
|
FIELD(f_rel_type, nam_r_type, fld_r_type, 0, ODS_11_1)
|
|
FIELD(f_rel_sql_security, nam_sql_security, fld_b_sql_security, 1, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 7 (RDB$VIEW_RELATIONS)
|
|
RELATION(nam_v_relations, rel_vrel, ODS_8_0, rel_persistent)
|
|
FIELD(f_vrl_vname, nam_v_name, fld_r_name, 1, ODS_8_0)
|
|
FIELD(f_vrl_rname, nam_r_name, fld_r_name, 1, ODS_8_0)
|
|
FIELD(f_vrl_context, nam_v_context, fld_context, 1, ODS_8_0)
|
|
FIELD(f_vrl_cname, nam_context, fld_ctx_name, 1, ODS_8_0)
|
|
FIELD(f_vrl_context_type, nam_ctx_type, fld_context, 1, ODS_12_0)
|
|
FIELD(f_vrl_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 8 (RDB$FORMATS)
|
|
RELATION(nam_formats, rel_formats, ODS_8_0, rel_persistent)
|
|
FIELD(f_fmt_rid, nam_r_id, fld_r_id, 0, ODS_8_0)
|
|
FIELD(f_fmt_format, nam_fmt, fld_format, 0, ODS_8_0)
|
|
FIELD(f_fmt_desc, nam_desc, fld_f_descr, 0, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 9 (RDB$SECURITY_CLASSES)
|
|
RELATION(nam_classes, rel_classes, ODS_8_0, rel_persistent)
|
|
FIELD(f_cls_class, nam_class, fld_class, 1, ODS_8_0)
|
|
FIELD(f_cls_acl, nam_acl, fld_acl, 1, ODS_8_0)
|
|
FIELD(f_cls_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 10 (RDB$FILES)
|
|
RELATION(nam_files, rel_files, ODS_8_0, rel_persistent)
|
|
FIELD(f_file_name, nam_file_name, fld_file_name, 1, ODS_8_0)
|
|
FIELD(f_file_seq, nam_file_seq, fld_file_seq, 1, ODS_8_0)
|
|
FIELD(f_file_start, nam_file_start, fld_file_start, 1, ODS_8_0)
|
|
FIELD(f_file_length, nam_file_length, fld_file_length, 1, ODS_8_0)
|
|
FIELD(f_file_flags, nam_file_flags, fld_file_flags, 1, ODS_8_0)
|
|
FIELD(f_file_shad_num, nam_shad_num, fld_shad_num, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 11 (RDB$TYPES)
|
|
RELATION(nam_types, rel_types, ODS_8_0, rel_persistent)
|
|
FIELD(f_typ_field, nam_f_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_typ_type, nam_type, fld_gnr_type, 1, ODS_8_0)
|
|
FIELD(f_typ_name, nam_typ_name, fld_typ_name, 1, ODS_8_0)
|
|
FIELD(f_typ_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_typ_sys_flag, nam_sys_flag, fld_flag, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 12 (RDB$TRIGGERS)
|
|
RELATION(nam_trgs, rel_triggers, ODS_8_0, rel_persistent)
|
|
FIELD(f_trg_name, nam_trg_name, fld_trg_name, 1, ODS_8_0)
|
|
FIELD(f_trg_rname, nam_r_name, fld_r_name, 1, ODS_8_0)
|
|
FIELD(f_trg_seq, nam_trg_seq, fld_trg_seq, 1, ODS_8_0)
|
|
FIELD(f_trg_type, nam_trg_type, fld_trg_type, 1, ODS_8_0)
|
|
FIELD(f_trg_source, nam_trg_source, fld_source, 1, ODS_8_0)
|
|
FIELD(f_trg_blr, nam_trigger, fld_trigger, 1, ODS_8_0)
|
|
FIELD(f_trg_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_trg_inactive, nam_trg_inactive, fld_flag_nullable, 1, ODS_8_0)
|
|
FIELD(f_trg_sys_flag, nam_sys_flag, fld_flag, 1, ODS_8_0)
|
|
FIELD(f_trg_flags, nam_flags, fld_flag_nullable, 1, ODS_8_0)
|
|
FIELD(f_trg_valid_blr, nam_valid_blr, fld_flag_nullable, 1, ODS_11_1)
|
|
FIELD(f_trg_debug_info, nam_debug_info, fld_debug_info, 1, ODS_11_1)
|
|
FIELD(f_trg_engine_name, nam_engine_name, fld_engine_name, 1, ODS_12_0)
|
|
FIELD(f_trg_entry, nam_entry, fld_ext_name, 1, ODS_12_0)
|
|
FIELD(f_trg_sql_security, nam_sql_security, fld_b_sql_security, 1, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 13 (RDB$DEPENDENCIES)
|
|
RELATION(nam_dpds, rel_dpds, ODS_8_0, rel_persistent)
|
|
FIELD(f_dpd_name, nam_dpd_name, fld_gnr_name, 1, ODS_8_0)
|
|
FIELD(f_dpd_o_name, nam_dpd_o_name, fld_gnr_name, 1, ODS_8_0)
|
|
FIELD(f_dpd_f_name, nam_f_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_dpd_type, nam_dpd_type, fld_obj_type, 1, ODS_8_0)
|
|
FIELD(f_dpd_o_type, nam_dpd_o_type, fld_obj_type, 1, ODS_8_0)
|
|
FIELD(f_dpd_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 14 (RDB$FUNCTIONS)
|
|
RELATION(nam_funs, rel_funs, ODS_8_0, rel_persistent)
|
|
FIELD(f_fun_name, nam_fun_name, fld_fun_name, 1, ODS_8_0)
|
|
FIELD(f_fun_type, nam_fun_type, fld_fun_type, 1, ODS_8_0)
|
|
FIELD(f_fun_qname, nam_q_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_fun_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_fun_module, nam_mod_name, fld_file_name, 1, ODS_8_0)
|
|
FIELD(f_fun_entry, nam_entry, fld_ext_name, 1, ODS_8_0)
|
|
FIELD(f_fun_ret_arg, nam_ret_arg, fld_f_position, 1, ODS_8_0)
|
|
FIELD(f_fun_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
|
|
FIELD(f_fun_engine_name, nam_engine_name, fld_engine_name, 1, ODS_12_0)
|
|
FIELD(f_fun_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
|
|
FIELD(f_fun_private_flag, nam_private_flag, fld_flag_nullable, 1, ODS_12_0)
|
|
FIELD(f_fun_source, nam_fun_source, fld_source, 1, ODS_12_0)
|
|
FIELD(f_fun_id, nam_fun_id, fld_fun_id, 0, ODS_12_0)
|
|
FIELD(f_fun_blr, nam_fun_blr, fld_fun_blr, 1, ODS_12_0)
|
|
FIELD(f_fun_valid_blr, nam_valid_blr, fld_flag_nullable, 1, ODS_12_0)
|
|
FIELD(f_fun_debug_info, nam_debug_info, fld_debug_info, 1, ODS_12_0)
|
|
FIELD(f_fun_class, nam_class, fld_class, 1, ODS_12_0)
|
|
FIELD(f_fun_owner, nam_owner, fld_user, 1, ODS_12_0)
|
|
FIELD(f_fun_legacy_flag, nam_legacy_flag, fld_flag_nullable, 0, ODS_12_0)
|
|
FIELD(f_fun_deterministic_flag, nam_deterministic_flag, fld_flag_nullable, 0, ODS_12_0)
|
|
FIELD(f_fun_sql_security, nam_sql_security, fld_b_sql_security, 1, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 15 (RDB$FUNCTION_ARGUMENTS)
|
|
RELATION(nam_args, rel_args, ODS_8_0, rel_persistent)
|
|
FIELD(f_arg_fun_name, nam_fun_name, fld_fun_name, 1, ODS_8_0)
|
|
FIELD(f_arg_pos, nam_arg_pos, fld_f_position, 1, ODS_8_0)
|
|
FIELD(f_arg_mech, nam_mechanism, fld_mechanism, 1, ODS_8_0)
|
|
FIELD(f_arg_type, nam_f_type, fld_f_type, 0, ODS_8_0)
|
|
FIELD(f_arg_scale, nam_f_scale, fld_f_scale, 0, ODS_8_0)
|
|
FIELD(f_arg_length, nam_f_length, fld_f_length, 0, ODS_8_0)
|
|
FIELD(f_arg_sub_type, nam_f_sub_type, fld_sub_type, 0, ODS_8_0)
|
|
FIELD(f_arg_charset_id, nam_charset_id, fld_charset_id, 1, ODS_8_0)
|
|
FIELD(f_arg_precision, nam_f_precision, fld_f_precision, 1, ODS_10_0)
|
|
FIELD(f_arg_char_length, nam_char_length, fld_f_length, 1, ODS_10_0)
|
|
FIELD(f_arg_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
|
|
FIELD(f_arg_name, nam_arg_name, fld_arg_name, 1, ODS_12_0)
|
|
FIELD(f_arg_sname, nam_f_source, fld_f_name, 1, ODS_12_0)
|
|
FIELD(f_arg_default, nam_default, fld_value, 1, ODS_12_0)
|
|
FIELD(f_arg_dsource, nam_d_source, fld_source, 1, ODS_12_0)
|
|
FIELD(f_arg_coll_id, nam_collate_id, fld_collate_id, 1, ODS_12_0)
|
|
FIELD(f_arg_null_flag, nam_null_flag, fld_null_flag, 1, ODS_12_0)
|
|
FIELD(f_arg_arg_mech, nam_arg_mechanism, fld_arg_mechanism, 1, ODS_12_0)
|
|
FIELD(f_arg_fname, nam_f_name, fld_f_name, 1, ODS_12_0)
|
|
FIELD(f_arg_rname, nam_r_name, fld_r_name, 1, ODS_12_0)
|
|
FIELD(f_arg_sys_flag, nam_sys_flag, fld_flag, 0, ODS_12_0)
|
|
FIELD(f_arg_desc, nam_description, fld_description, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 16 (RDB$FILTERS)
|
|
RELATION(nam_filters, rel_filters, ODS_8_0, rel_persistent)
|
|
FIELD(f_flt_name, nam_fun_name, fld_fun_name, 1, ODS_8_0)
|
|
FIELD(f_flt_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_flt_module, nam_mod_name, fld_file_name, 1, ODS_8_0)
|
|
FIELD(f_flt_entry, nam_entry, fld_ext_name, 1, ODS_8_0)
|
|
FIELD(f_flt_input, nam_in_type, fld_sub_type, 1, ODS_8_0)
|
|
FIELD(f_flt_output, nam_out_type, fld_sub_type, 1, ODS_8_0)
|
|
FIELD(f_flt_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
|
|
FIELD(f_flt_class, nam_class, fld_class, 1, ODS_12_0)
|
|
FIELD(f_flt_owner, nam_owner, fld_user, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 17 (RDB$TRIGGER_MESSAGES)
|
|
RELATION(nam_trg_msgs, rel_msgs, ODS_8_0, rel_persistent)
|
|
FIELD(f_msg_trigger, nam_trg_name, fld_trg_name, 1, ODS_8_0)
|
|
FIELD(f_msg_number, nam_msg_num, fld_msg_num, 1, ODS_8_0)
|
|
FIELD(f_msg_msg, nam_msg, fld_msg, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 18 (RDB$USER_PRIVILEGES)
|
|
RELATION(nam_user_privileges, rel_priv, ODS_8_0, rel_persistent)
|
|
FIELD(f_prv_user, nam_user, fld_user, 1, ODS_8_0)
|
|
FIELD(f_prv_grantor, nam_grantor, fld_user, 1, ODS_8_0)
|
|
FIELD(f_prv_priv, nam_privilege, fld_privilege, 1, ODS_8_0)
|
|
FIELD(f_prv_grant, nam_grant, fld_flag_nullable, 1, ODS_8_0)
|
|
FIELD(f_prv_rname, nam_r_name, fld_gnr_name, 1, ODS_8_0)
|
|
FIELD(f_prv_fname, nam_f_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_prv_u_type, nam_user_type, fld_obj_type, 1, ODS_8_0)
|
|
FIELD(f_prv_o_type, nam_obj_type, fld_obj_type, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 19 (RDB$TRANSACTIONS)
|
|
RELATION(nam_trans, rel_trans, ODS_8_0, rel_persistent)
|
|
FIELD(f_trn_id, nam_trans_id, fld_trans_id, 1, ODS_8_0)
|
|
FIELD(f_trn_state, nam_trans_state, fld_trans_state, 1, ODS_8_0)
|
|
FIELD(f_trn_time, nam_time, fld_timestamp_tz, 1, ODS_8_0)
|
|
FIELD(f_trn_desc, nam_trans_desc, fld_trans_desc, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 20 (RDB$GENERATORS)
|
|
RELATION(nam_gens, rel_gens, ODS_8_0, rel_persistent)
|
|
FIELD(f_gen_name, nam_gen_name, fld_gen_name, 1, ODS_8_0)
|
|
FIELD(f_gen_id, nam_gen_id, fld_gen_id, 1, ODS_8_0)
|
|
FIELD(f_gen_sys_flag, nam_sys_flag, fld_flag, 1, ODS_8_0)
|
|
FIELD(f_gen_desc, nam_description, fld_description, 1, ODS_11_0)
|
|
FIELD(f_gen_class, nam_class, fld_class, 1, ODS_12_0)
|
|
FIELD(f_gen_owner, nam_owner, fld_user, 1, ODS_12_0)
|
|
FIELD(f_gen_init_val, nam_init_val, fld_gen_val, 1, ODS_12_0)
|
|
FIELD(f_gen_increment, nam_gen_increment, fld_gen_increment, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 21 (RDB$FIELD_DIMENSIONS)
|
|
RELATION(nam_fld_dims, rel_dims, ODS_8_0, rel_persistent)
|
|
FIELD(f_dims_fname, nam_f_name, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_dims_dim, nam_dim, fld_dim, 1, ODS_8_0)
|
|
FIELD(f_dims_lower, nam_lower, fld_bound, 1, ODS_8_0)
|
|
FIELD(f_dims_upper, nam_upper, fld_bound, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 22 (RDB$RELATION_CONSTRAINTS)
|
|
RELATION(nam_rel_constr, rel_rcon, ODS_8_0, rel_persistent)
|
|
FIELD(f_rcon_cname, nam_con_name, fld_con_name, 1, ODS_8_0)
|
|
FIELD(f_rcon_ctype, nam_con_type, fld_con_type, 1, ODS_8_0)
|
|
FIELD(f_rcon_rname, nam_r_name, fld_r_name, 1, ODS_8_0)
|
|
FIELD(f_rcon_dfr, nam_defer, fld_defer, 1, ODS_8_0)
|
|
FIELD(f_rcon_idfr, nam_init_defer, fld_defer, 1, ODS_8_0)
|
|
FIELD(f_rcon_iname, nam_i_name, fld_i_name, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 23 (RDB$REF_CONSTRAINTS)
|
|
RELATION(nam_ref_constr, rel_refc, ODS_8_0, rel_persistent)
|
|
FIELD(f_refc_cname, nam_con_name, fld_con_name, 1, ODS_8_0)
|
|
FIELD(f_refc_uq, nam_con_uq, fld_con_name, 1, ODS_8_0)
|
|
FIELD(f_refc_match, nam_match, fld_match, 1, ODS_8_0)
|
|
FIELD(f_refc_upd_rul, nam_upd_rule, fld_rule, 1, ODS_8_0)
|
|
FIELD(f_refc_del_rul, nam_del_rule, fld_rule, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 24 (RDB$CHECK_CONSTRAINTS)
|
|
RELATION(nam_chk_constr, rel_ccon, ODS_8_0, rel_persistent)
|
|
FIELD(f_ccon_cname, nam_con_name, fld_con_name, 1, ODS_8_0)
|
|
FIELD(f_ccon_tname, nam_trg_name, fld_trg_name, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 25 (RDB$LOG_FILES)
|
|
RELATION(nam_log_files, rel_log, ODS_8_0, rel_persistent)
|
|
FIELD(f_log_name, nam_file_name, fld_file_name, 1, ODS_8_0)
|
|
FIELD(f_log_seq, nam_file_seq, fld_file_seq, 1, ODS_8_0)
|
|
FIELD(f_log_length, nam_file_length, fld_file_length, 1, ODS_8_0)
|
|
FIELD(f_log_partitions, nam_file_partitions, fld_file_partitions, 1, ODS_8_0)
|
|
FIELD(f_log_p_offset, nam_file_p_offset, fld_file_p_offset, 1, ODS_8_0)
|
|
FIELD(f_log_flags, nam_file_flags, fld_file_flags, 1, ODS_8_0)
|
|
END_RELATION
|
|
|
|
// Relation 26 (RDB$PROCEDURES)
|
|
RELATION(nam_procedures, rel_procedures, ODS_8_0, rel_persistent)
|
|
FIELD(f_prc_name, nam_prc_name, fld_prc_name, 1, ODS_8_0)
|
|
FIELD(f_prc_id, nam_prc_id, fld_prc_id, 0, ODS_8_0)
|
|
FIELD(f_prc_inputs, nam_prc_inputs, fld_prc_prm, 1, ODS_8_0)
|
|
FIELD(f_prc_outputs, nam_prc_outputs, fld_prc_prm, 1, ODS_8_0)
|
|
FIELD(f_prc_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_prc_source, nam_prc_source, fld_source, 1, ODS_8_0)
|
|
FIELD(f_prc_blr, nam_prc_blr, fld_prc_blr, 1, ODS_8_0)
|
|
FIELD(f_prc_class, nam_class, fld_class, 1, ODS_8_0)
|
|
FIELD(f_prc_owner, nam_owner, fld_user, 1, ODS_8_0)
|
|
FIELD(f_prc_runtime, nam_runtime, fld_runtime, 1, ODS_8_0)
|
|
FIELD(f_prc_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
|
|
FIELD(f_prc_type, nam_prc_type, fld_prc_type, 1, ODS_11_1)
|
|
FIELD(f_prc_valid_blr, nam_valid_blr, fld_flag_nullable, 1, ODS_11_1)
|
|
FIELD(f_prc_debug_info, nam_debug_info, fld_debug_info, 1, ODS_11_1)
|
|
FIELD(f_prc_engine_name, nam_engine_name, fld_engine_name, 1, ODS_12_0)
|
|
FIELD(f_prc_entry, nam_entry, fld_ext_name, 1, ODS_12_0)
|
|
FIELD(f_prc_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
|
|
FIELD(f_prc_private_flag, nam_private_flag, fld_flag_nullable, 1, ODS_12_0)
|
|
FIELD(f_prc_sql_security, nam_sql_security, fld_b_sql_security, 1, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 27 (RDB$PROCEDURE_PARAMETERS)
|
|
RELATION(nam_proc_parameters, rel_prc_prms, ODS_8_0, rel_persistent)
|
|
FIELD(f_prm_name, nam_prm_name, fld_prm_name, 1, ODS_8_0)
|
|
FIELD(f_prm_procedure, nam_prc_name, fld_prc_name, 1, ODS_8_0)
|
|
FIELD(f_prm_number, nam_prm_number, fld_prm_number, 1, ODS_8_0)
|
|
FIELD(f_prm_type, nam_prm_type, fld_prm_type, 1, ODS_8_0)
|
|
FIELD(f_prm_sname, nam_f_source, fld_f_name, 1, ODS_8_0)
|
|
FIELD(f_prm_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_prm_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
|
|
FIELD(f_prm_default, nam_default, fld_value, 1, ODS_11_1)
|
|
FIELD(f_prm_dsource, nam_d_source, fld_source, 1, ODS_11_1)
|
|
FIELD(f_prm_coll_id, nam_collate_id, fld_collate_id, 1, ODS_11_1)
|
|
FIELD(f_prm_null_flag, nam_null_flag, fld_null_flag, 1, ODS_11_1)
|
|
FIELD(f_prm_mech, nam_prm_mechanism, fld_mechanism, 1, ODS_11_1)
|
|
FIELD(f_prm_fname, nam_f_name, fld_f_name, 1, ODS_11_2)
|
|
FIELD(f_prm_rname, nam_r_name, fld_r_name, 1, ODS_11_2)
|
|
FIELD(f_prm_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 28 (RDB$CHARACTER_SETS)
|
|
RELATION(nam_charsets, rel_charsets, ODS_8_0, rel_persistent)
|
|
FIELD(f_cs_cs_name, nam_charset_name, fld_charset_name, 1, ODS_8_0)
|
|
FIELD(f_cs_form_of_use, nam_form_of_use, fld_gnr_name, 1, ODS_8_0)
|
|
FIELD(f_cs_num_chars, nam_num_chars, fld_num_chars, 1, ODS_8_0)
|
|
FIELD(f_cs_def_collate, nam_def_collate, fld_collate_name, 1, ODS_8_0)
|
|
FIELD(f_cs_id, nam_charset_id, fld_charset_id, 1, ODS_8_0)
|
|
FIELD(f_cs_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
|
|
FIELD(f_cs_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_cs_fun_name, nam_fun_name, fld_fun_name, 1, ODS_8_0)
|
|
FIELD(f_cs_bytes_char, nam_bytes_per_char, fld_f_length, 1, ODS_8_0)
|
|
FIELD(f_cs_class, nam_class, fld_class, 1, ODS_12_0)
|
|
FIELD(f_cs_owner, nam_owner, fld_user, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 29 (RDB$COLLATIONS)
|
|
RELATION(nam_collations, rel_collations, ODS_8_0, rel_persistent)
|
|
FIELD(f_coll_name, nam_collate_name, fld_collate_name, 1, ODS_8_0)
|
|
FIELD(f_coll_id, nam_collate_id, fld_collate_id, 1, ODS_8_0)
|
|
FIELD(f_coll_cs_id, nam_charset_id, fld_charset_id, 1, ODS_8_0)
|
|
FIELD(f_coll_attr, nam_collate_attr, fld_gnr_type, 1, ODS_8_0)
|
|
FIELD(f_coll_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
|
|
FIELD(f_coll_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_coll_fun_name, nam_fun_name, fld_fun_name, 1, ODS_8_0)
|
|
FIELD(f_coll_base_collation_name, nam_base_collation_name, fld_collate_name, 1, ODS_11_0)
|
|
FIELD(f_coll_specific_attr, nam_specific_attr, fld_specific_attr, 1, ODS_11_0)
|
|
FIELD(f_coll_class, nam_class, fld_class, 1, ODS_12_0)
|
|
FIELD(f_coll_owner, nam_owner, fld_user, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 30 (RDB$EXCEPTIONS)
|
|
RELATION(nam_exceptions, rel_exceptions, ODS_8_0, rel_persistent)
|
|
FIELD(f_xcp_name, nam_xcp_name, fld_xcp_name, 1, ODS_8_0)
|
|
FIELD(f_xcp_number, nam_xcp_number, fld_xcp_number, 1, ODS_8_0)
|
|
FIELD(f_xcp_msg, nam_msg, fld_msg, 1, ODS_8_0)
|
|
FIELD(f_xcp_desc, nam_description, fld_description, 1, ODS_8_0)
|
|
FIELD(f_xcp_sys_flag, nam_sys_flag, fld_flag, 1, ODS_8_0)
|
|
FIELD(f_xcp_class, nam_class, fld_class, 1, ODS_12_0)
|
|
FIELD(f_xcp_owner, nam_owner, fld_user, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 31 (RDB$ROLES)
|
|
RELATION(nam_roles, rel_roles, ODS_9_0, rel_persistent)
|
|
FIELD(f_rol_name, nam_role_name, fld_user, 1, ODS_9_0)
|
|
FIELD(f_rol_owner, nam_owner, fld_user, 1, ODS_9_0)
|
|
FIELD(f_rol_desc, nam_description, fld_description, 1, ODS_11_0)
|
|
FIELD(f_rol_sys_flag, nam_sys_flag, fld_flag, 1, ODS_11_0)
|
|
FIELD(f_rol_class, nam_class, fld_class, 1, ODS_12_0)
|
|
FIELD(f_rol_sys_priv, nam_system_privileges, fld_system_privileges, 1, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 32 (RDB$BACKUP_HISTORY)
|
|
RELATION(nam_backup_history, rel_backup_history, ODS_11_0, rel_persistent)
|
|
FIELD(f_backup_id, nam_backup_id, fld_backup_id, 1, ODS_11_0)
|
|
FIELD(f_backup_time, nam_time, fld_timestamp_tz, 1, ODS_11_0)
|
|
FIELD(f_backup_level, nam_backup_level, fld_backup_level, 1, ODS_11_0)
|
|
FIELD(f_backup_guid, nam_guid, fld_guid, 1, ODS_11_0)
|
|
FIELD(f_backup_scn, nam_scn, fld_scn, 1, ODS_11_0)
|
|
FIELD(f_backup_name, nam_file_name, fld_file_name, 1, ODS_11_0)
|
|
END_RELATION
|
|
|
|
// Relation 33 (MON$DATABASE)
|
|
RELATION(nam_mon_database, rel_mon_database, ODS_11_1, rel_virtual)
|
|
FIELD(f_mon_db_name, nam_mon_db_name, fld_file_name2, 0, ODS_11_1)
|
|
FIELD(f_mon_db_page_size, nam_mon_page_size, fld_page_size, 0, ODS_11_1)
|
|
FIELD(f_mon_db_ods_major, nam_mon_ods_major, fld_ods_number, 0, ODS_11_1)
|
|
FIELD(f_mon_db_ods_minor, nam_mon_ods_minor, fld_ods_number, 0, ODS_11_1)
|
|
FIELD(f_mon_db_oit, nam_mon_oit, fld_trans_id, 0, ODS_11_1)
|
|
FIELD(f_mon_db_oat, nam_mon_oat, fld_trans_id, 0, ODS_11_1)
|
|
FIELD(f_mon_db_ost, nam_mon_ost, fld_trans_id, 0, ODS_11_1)
|
|
FIELD(f_mon_db_nt, nam_mon_nt, fld_trans_id, 0, ODS_11_1)
|
|
FIELD(f_mon_db_page_bufs, nam_mon_page_bufs, fld_page_bufs, 0, ODS_11_1)
|
|
FIELD(f_mon_db_dialect, nam_mon_dialect, fld_sql_dialect, 0, ODS_11_1)
|
|
FIELD(f_mon_db_shut_mode, nam_mon_shut_mode, fld_shut_mode, 0, ODS_11_1)
|
|
FIELD(f_mon_db_sweep_int, nam_mon_sweep_int, fld_sweep_int, 0, ODS_11_1)
|
|
FIELD(f_mon_db_read_only, nam_mon_read_only, fld_flag_nullable, 0, ODS_11_1)
|
|
FIELD(f_mon_db_forced_writes, nam_mon_forced_writes, fld_flag_nullable, 0, ODS_11_1)
|
|
FIELD(f_mon_db_res_space, nam_mon_res_space, fld_flag_nullable, 0, ODS_11_1)
|
|
FIELD(f_mon_db_created, nam_mon_created, fld_timestamp_tz, 0, ODS_11_1)
|
|
FIELD(f_mon_db_pages, nam_mon_pages, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_db_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
|
|
FIELD(f_mon_db_backup_state, nam_mon_backup_state, fld_backup_state, 0, ODS_11_1)
|
|
FIELD(f_mon_db_crypt_page, nam_mon_crypt_page, fld_counter, 0, ODS_12_0)
|
|
FIELD(f_mon_db_owner, nam_mon_owner, fld_user, 0, ODS_12_0)
|
|
FIELD(f_mon_db_secdb, nam_mon_secdb, fld_sec_db, 0, ODS_12_0)
|
|
FIELD(f_mon_db_crypt_state, nam_mon_crypt_state, fld_crypt_state, 0, ODS_13_0)
|
|
FIELD(f_mon_db_guid, nam_mon_guid, fld_guid, 0, ODS_13_0)
|
|
FIELD(f_mon_db_file_id, nam_mon_file_id, fld_file_id, 0, ODS_13_0)
|
|
FIELD(f_mon_db_na, nam_mon_na, fld_att_id, 0, ODS_13_0)
|
|
FIELD(f_mon_db_ns, nam_mon_ns, fld_stmt_id, 0, ODS_13_0)
|
|
FIELD(f_mon_db_repl_mode, nam_mon_repl_mode, fld_repl_mode, 0, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 34 (MON$ATTACHMENTS)
|
|
RELATION(nam_mon_attachments, rel_mon_attachments, ODS_11_1, rel_virtual)
|
|
FIELD(f_mon_att_id, nam_mon_att_id, fld_att_id, 0, ODS_11_1)
|
|
FIELD(f_mon_att_server_pid, nam_mon_server_pid, fld_pid, 0, ODS_11_1)
|
|
FIELD(f_mon_att_state, nam_mon_state, fld_state, 0, ODS_11_1)
|
|
FIELD(f_mon_att_name, nam_mon_att_name, fld_file_name2, 0, ODS_11_1)
|
|
FIELD(f_mon_att_user, nam_mon_user, fld_user, 0, ODS_11_1)
|
|
FIELD(f_mon_att_role, nam_mon_role, fld_user, 0, ODS_11_1)
|
|
FIELD(f_mon_att_remote_proto, nam_mon_remote_proto, fld_remote_proto, 0, ODS_11_1)
|
|
FIELD(f_mon_att_remote_addr, nam_mon_remote_addr, fld_remote_addr, 0, ODS_11_1)
|
|
FIELD(f_mon_att_remote_pid, nam_mon_remote_pid, fld_pid, 0, ODS_11_1)
|
|
FIELD(f_mon_att_charset_id, nam_mon_charset_id, fld_charset_id, 0, ODS_11_1)
|
|
FIELD(f_mon_att_timestamp, nam_mon_timestamp, fld_timestamp_tz, 0, ODS_11_1)
|
|
FIELD(f_mon_att_gc, nam_mon_gc, fld_flag_nullable, 0, ODS_11_1)
|
|
FIELD(f_mon_att_remote_process, nam_mon_remote_process, fld_file_name2, 0, ODS_11_1)
|
|
FIELD(f_mon_att_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
|
|
FIELD(f_mon_att_client_version, nam_mon_client_ver, fld_client_ver, 0, ODS_12_0)
|
|
FIELD(f_mon_att_remote_version, nam_mon_remote_ver, fld_remote_ver, 0, ODS_12_0)
|
|
FIELD(f_mon_att_remote_host, nam_mon_remote_host, fld_host_name, 0, ODS_12_0)
|
|
FIELD(f_mon_att_remote_os_user, nam_mon_remote_os_user, fld_os_user, 0, ODS_12_0)
|
|
FIELD(f_mon_att_auth_method, nam_mon_auth_method, fld_auth_method, 0, ODS_12_0)
|
|
FIELD(f_mon_att_sys_flag, nam_mon_sys_flag, fld_flag, 0, ODS_12_0)
|
|
FIELD(f_mon_att_idle_timeout, nam_idle_timeout, fld_idle_timeout, 0, ODS_13_0)
|
|
FIELD(f_mon_att_idle_timer, nam_idle_timer, fld_idle_timer, 0, ODS_13_0)
|
|
FIELD(f_mon_att_stmt_timeout, nam_stmt_timeout, fld_stmt_timeout, 0, ODS_13_0)
|
|
FIELD(f_mon_att_wire_compressed, nam_wire_compressed, fld_bool, 0, ODS_13_0)
|
|
FIELD(f_mon_att_wire_encrypted, nam_wire_encrypted, fld_bool, 0, ODS_13_0)
|
|
FIELD(f_mon_att_remote_crypt, nam_wire_crypt_plugin, fld_remote_crypt, 0, ODS_13_0)
|
|
FIELD(f_mon_att_session_tz, nam_mon_session_tz, fld_tz_name, 0, ODS_13_1)
|
|
FIELD(f_mon_att_par_workers, nam_par_workers, fld_par_workers, 0, ODS_13_1)
|
|
END_RELATION
|
|
|
|
// Relation 35 (MON$TRANSACTIONS)
|
|
RELATION(nam_mon_transactions, rel_mon_transactions, ODS_11_1, rel_virtual)
|
|
FIELD(f_mon_tra_id, nam_mon_tra_id, fld_trans_id, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_att_id, nam_mon_att_id, fld_att_id, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_state, nam_mon_state, fld_state, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_timestamp, nam_mon_timestamp, fld_timestamp_tz, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_top, nam_mon_top, fld_trans_id, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_oit, nam_mon_oit, fld_trans_id, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_oat, nam_mon_oat, fld_trans_id, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_iso_mode, nam_mon_iso_mode, fld_iso_mode, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_lock_timeout, nam_mon_lock_timeout, fld_lock_timeout, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_read_only, nam_mon_read_only, fld_flag_nullable, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_auto_commit, nam_mon_auto_commit, fld_flag_nullable, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_auto_undo, nam_mon_auto_undo, fld_flag_nullable, 0, ODS_11_1)
|
|
FIELD(f_mon_tra_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
|
|
END_RELATION
|
|
|
|
// Relation 36 (MON$STATEMENTS)
|
|
RELATION(nam_mon_statements, rel_mon_statements, ODS_11_1, rel_virtual)
|
|
FIELD(f_mon_stmt_id, nam_mon_stmt_id, fld_stmt_id, 0, ODS_11_1)
|
|
FIELD(f_mon_stmt_att_id, nam_mon_att_id, fld_att_id, 0, ODS_11_1)
|
|
FIELD(f_mon_stmt_tra_id, nam_mon_tra_id, fld_trans_id, 0, ODS_11_1)
|
|
FIELD(f_mon_stmt_state, nam_mon_state, fld_state, 0, ODS_11_1)
|
|
FIELD(f_mon_stmt_timestamp, nam_mon_timestamp, fld_timestamp_tz, 0, ODS_11_1)
|
|
FIELD(f_mon_stmt_sql_text, nam_mon_sql_text, fld_source, 0, ODS_11_1)
|
|
FIELD(f_mon_stmt_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
|
|
FIELD(f_mon_stmt_expl_plan, nam_mon_expl_plan, fld_source, 0, ODS_11_1)
|
|
FIELD(f_mon_stmt_timeout, nam_stmt_timeout, fld_stmt_timeout, 0, ODS_13_0)
|
|
FIELD(f_mon_stmt_timer, nam_stmt_timer, fld_stmt_timer, 0, ODS_13_0)
|
|
FIELD(f_mon_stmt_cmp_stmt_id, nam_mon_cmp_stmt_id, fld_stmt_id, 0, ODS_13_1)
|
|
END_RELATION
|
|
|
|
// Relation 37 (MON$CALL_STACK)
|
|
RELATION(nam_mon_calls, rel_mon_calls, ODS_11_1, rel_virtual)
|
|
FIELD(f_mon_call_id, nam_mon_call_id, fld_call_id, 0, ODS_11_1)
|
|
FIELD(f_mon_call_stmt_id, nam_mon_stmt_id, fld_stmt_id, 0, ODS_11_1)
|
|
FIELD(f_mon_call_caller_id, nam_mon_caller_id, fld_call_id, 0, ODS_11_1)
|
|
FIELD(f_mon_call_name, nam_mon_obj_name, fld_gnr_name, 0, ODS_11_1)
|
|
FIELD(f_mon_call_type, nam_mon_obj_type, fld_obj_type, 0, ODS_11_1)
|
|
FIELD(f_mon_call_timestamp, nam_mon_timestamp, fld_timestamp_tz, 0, ODS_11_1)
|
|
FIELD(f_mon_call_src_line, nam_mon_src_line, fld_src_info, 0, ODS_11_1)
|
|
FIELD(f_mon_call_src_column, nam_mon_src_column, fld_src_info, 0, ODS_11_1)
|
|
FIELD(f_mon_call_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
|
|
FIELD(f_mon_call_pkg_name, nam_mon_pkg_name, fld_pkg_name, 0, ODS_12_0)
|
|
FIELD(f_mon_call_cmp_stmt_id, nam_mon_cmp_stmt_id, fld_stmt_id, 0, ODS_13_1)
|
|
END_RELATION
|
|
|
|
// Relation 38 (MON$IO_STATS)
|
|
RELATION(nam_mon_io_stats, rel_mon_io_stats, ODS_11_1, rel_virtual)
|
|
FIELD(f_mon_io_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
|
|
FIELD(f_mon_io_stat_group, nam_mon_stat_group, fld_stat_group, 0, ODS_11_1)
|
|
FIELD(f_mon_io_page_reads, nam_mon_page_reads, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_io_page_writes, nam_mon_page_writes, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_io_page_fetches, nam_mon_page_fetches, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_io_page_marks, nam_mon_page_marks, fld_counter, 0, ODS_11_1)
|
|
END_RELATION
|
|
|
|
// Relation 39 (MON$RECORD_STATS)
|
|
RELATION(nam_mon_rec_stats, rel_mon_rec_stats, ODS_11_1, rel_virtual)
|
|
FIELD(f_mon_rec_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
|
|
FIELD(f_mon_rec_stat_group, nam_mon_stat_group, fld_stat_group, 0, ODS_11_1)
|
|
FIELD(f_mon_rec_seq_reads, nam_mon_rec_seq_reads, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_rec_idx_reads, nam_mon_rec_idx_reads, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_rec_inserts, nam_mon_rec_inserts, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_rec_updates, nam_mon_rec_updates, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_rec_deletes, nam_mon_rec_deletes, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_rec_backouts, nam_mon_rec_backouts, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_rec_purges, nam_mon_rec_purges, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_rec_expunges, nam_mon_rec_expunges, fld_counter, 0, ODS_11_1)
|
|
FIELD(f_mon_rec_locks, nam_mon_rec_locks, fld_counter, 0, ODS_12_0)
|
|
FIELD(f_mon_rec_waits, nam_mon_rec_waits, fld_counter, 0, ODS_12_0)
|
|
FIELD(f_mon_rec_conflicts, nam_mon_rec_conflicts, fld_counter, 0, ODS_12_0)
|
|
FIELD(f_mon_rec_bkver_reads, nam_mon_bkversion_reads, fld_counter, 0, ODS_12_0)
|
|
FIELD(f_mon_rec_frg_reads, nam_mon_fragment_reads, fld_counter, 0, ODS_12_0)
|
|
FIELD(f_mon_rec_rpt_reads, nam_mon_rec_rpt_reads, fld_counter, 0, ODS_12_0)
|
|
FIELD(f_mon_rec_imgc, nam_mon_rec_imgc, fld_counter, 0, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 40 (MON$CONTEXT_VARIABLES)
|
|
RELATION(nam_mon_ctx_vars, rel_mon_ctx_vars, ODS_11_2, rel_virtual)
|
|
FIELD(f_mon_ctx_var_att_id, nam_mon_att_id, fld_att_id, 0, ODS_11_2)
|
|
FIELD(f_mon_ctx_var_tra_id, nam_mon_tra_id, fld_trans_id, 0, ODS_11_2)
|
|
FIELD(f_mon_ctx_var_name, nam_mon_var_name, fld_ctx_var_name, 0, ODS_11_2)
|
|
FIELD(f_mon_ctx_var_value, nam_mon_var_value, fld_ctx_var_value, 0, ODS_11_2)
|
|
END_RELATION
|
|
|
|
// Relation 41 (MON$MEMORY_USAGE)
|
|
RELATION(nam_mon_mem_usage, rel_mon_mem_usage, ODS_11_2, rel_virtual)
|
|
FIELD(f_mon_mem_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_2)
|
|
FIELD(f_mon_mem_stat_group, nam_mon_stat_group, fld_stat_group, 0, ODS_11_2)
|
|
FIELD(f_mon_mem_cur_used, nam_mon_mem_used, fld_counter, 0, ODS_11_2)
|
|
FIELD(f_mon_mem_cur_alloc, nam_mon_mem_alloc, fld_counter, 0, ODS_11_2)
|
|
FIELD(f_mon_mem_max_used, nam_mon_max_used, fld_counter, 0, ODS_11_2)
|
|
FIELD(f_mon_mem_max_alloc, nam_mon_max_alloc, fld_counter, 0, ODS_11_2)
|
|
END_RELATION
|
|
|
|
// Relation 42 (RDB$PACKAGES)
|
|
RELATION(nam_packages, rel_packages, ODS_12_0, rel_persistent)
|
|
FIELD(f_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
|
|
FIELD(f_pkg_header_source, nam_pkg_header_source, fld_source, 1, ODS_12_0)
|
|
FIELD(f_pkg_body_source, nam_pkg_body_source, fld_source, 1, ODS_12_0)
|
|
FIELD(f_pkg_valid_body_flag, nam_valid_body_flag, fld_flag_nullable, 1, ODS_12_0)
|
|
FIELD(f_pkg_class, nam_class, fld_class, 1, ODS_12_0)
|
|
FIELD(f_pkg_owner, nam_owner, fld_user, 1, ODS_12_0)
|
|
FIELD(f_pkg_sys_flag, nam_sys_flag, fld_flag, 1, ODS_12_0)
|
|
FIELD(f_pkg_desc, nam_description, fld_description, 1, ODS_12_0)
|
|
FIELD(f_pkg_sql_security, nam_sql_security, fld_b_sql_security, 1, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 43 (SEC$USERS)
|
|
RELATION(nam_sec_users, rel_sec_users, ODS_12_0, rel_virtual)
|
|
FIELD(f_sec_user_name, nam_user_name, fld_user, 0, ODS_12_0)
|
|
FIELD(f_sec_first_name, nam_first_name, fld_name_part, 0, ODS_12_0)
|
|
FIELD(f_sec_middle_name, nam_middle_name, fld_name_part, 0, ODS_12_0)
|
|
FIELD(f_sec_last_name, nam_last_name, fld_name_part, 0, ODS_12_0)
|
|
FIELD(f_sec_active, nam_sec_active, fld_bool, 0, ODS_12_0)
|
|
FIELD(f_sec_admin, nam_sec_admin, fld_bool, 0, ODS_12_0)
|
|
FIELD(f_sec_comment, nam_sec_description, fld_description, 0, ODS_12_0)
|
|
FIELD(f_sec_plugin, nam_sec_plugin, fld_plugin_name, 0, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 44 (SEC$USER_ATTRIBUTES)
|
|
RELATION(nam_sec_user_attributes, rel_sec_user_attributes, ODS_12_0, rel_virtual)
|
|
FIELD(f_sec_attr_user, nam_user_name, fld_user, 0, ODS_12_0)
|
|
FIELD(f_sec_attr_key, nam_sec_attr_key, fld_attr_key, 0, ODS_12_0)
|
|
FIELD(f_sec_attr_value, nam_sec_attr_value, fld_attr_value, 0, ODS_12_0)
|
|
FIELD(f_sec_attr_plugin, nam_sec_plugin, fld_plugin_name, 0, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 45 (RDB$AUTH_MAPPING)
|
|
RELATION(nam_auth_mapping, rel_auth_mapping, ODS_12_0, rel_persistent)
|
|
FIELD(f_map_name, nam_map_name, fld_map_name, 1, ODS_12_0)
|
|
FIELD(f_map_using, nam_map_using, fld_map_using, 1, ODS_12_0)
|
|
FIELD(f_map_plugin, nam_map_plugin, fld_plugin_name, 1, ODS_12_0)
|
|
FIELD(f_map_db, nam_map_db, fld_map_db, 1, ODS_12_0)
|
|
FIELD(f_map_from_type, nam_map_from_type, fld_map_from_type, 1, ODS_12_0)
|
|
FIELD(f_map_from, nam_map_from, fld_map_from, 1, ODS_12_0)
|
|
FIELD(f_map_to_type, nam_map_to_type, fld_obj_type, 1, ODS_12_0)
|
|
FIELD(f_map_to, nam_map_to, fld_map_to, 1, ODS_12_0)
|
|
FIELD(f_map_sys_flag, nam_sys_flag, fld_flag, 1, ODS_12_0)
|
|
FIELD(f_map_desc, nam_description, fld_description, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 46 (SEC$GLOBAL_AUTH_MAPPING)
|
|
RELATION(nam_sec_global_auth_mapping, rel_global_auth_mapping, ODS_12_0, rel_virtual)
|
|
FIELD(f_sec_map_name, nam_sec_map_name, fld_map_name, 0, ODS_12_0)
|
|
FIELD(f_sec_map_using, nam_sec_map_using, fld_map_using, 0, ODS_12_0)
|
|
FIELD(f_sec_map_plugin, nam_sec_map_plugin, fld_plugin_name, 0, ODS_12_0)
|
|
FIELD(f_sec_map_db, nam_sec_map_db, fld_map_db, 0, ODS_12_0)
|
|
FIELD(f_sec_map_from_type, nam_sec_map_from_type, fld_map_from_type, 0, ODS_12_0)
|
|
FIELD(f_sec_map_from, nam_sec_map_from, fld_map_from, 0, ODS_12_0)
|
|
FIELD(f_sec_map_to_type, nam_sec_map_to_type, fld_obj_type, 0, ODS_12_0)
|
|
FIELD(f_sec_map_to, nam_sec_map_to, fld_map_to, 0, ODS_12_0)
|
|
FIELD(f_sec_map_comment, nam_sec_description, fld_description, 0, ODS_13_1)
|
|
END_RELATION
|
|
|
|
// Relation 47 (RDB$DB_CREATORS)
|
|
RELATION(nam_db_creators, rel_db_creators, ODS_12_0, rel_persistent)
|
|
FIELD(f_crt_user, nam_user, fld_user, 1, ODS_12_0)
|
|
FIELD(f_crt_u_type, nam_user_type, fld_obj_type, 1, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 48 (SEC$DB_CREATORS)
|
|
RELATION(nam_sec_db_creators, rel_sec_db_creators, ODS_12_0, rel_virtual)
|
|
FIELD(f_sec_crt_user, nam_sec_user, fld_user, 0, ODS_12_0)
|
|
FIELD(f_sec_crt_u_type, nam_sec_user_type, fld_obj_type, 0, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 49 (MON$TABLE_STATS)
|
|
RELATION(nam_mon_tab_stats, rel_mon_tab_stats, ODS_12_0, rel_virtual)
|
|
FIELD(f_mon_tab_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_12_0)
|
|
FIELD(f_mon_tab_stat_group, nam_mon_stat_group, fld_stat_group, 0, ODS_12_0)
|
|
FIELD(f_mon_tab_name, nam_mon_tab_name, fld_r_name, 0, ODS_12_0)
|
|
FIELD(f_mon_tab_rec_stat_id, nam_mon_rec_stat_id, fld_stat_id, 0, ODS_12_0)
|
|
END_RELATION
|
|
|
|
// Relation 50 (RDB$TIME_ZONES)
|
|
RELATION(nam_time_zones, rel_time_zones, ODS_13_0, rel_virtual)
|
|
FIELD(f_tz_id, nam_tz_id, fld_tz_id, 0, ODS_13_0)
|
|
FIELD(f_tz_name, nam_tz_name, fld_tz_name, 0, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 51 (RDB$PUBLICATIONS)
|
|
RELATION(nam_pubs, rel_pubs, ODS_13_0, rel_persistent)
|
|
FIELD(f_pub_name, nam_pub_name, fld_pub_name, 1, ODS_13_0)
|
|
FIELD(f_pub_owner, nam_owner, fld_user, 1, ODS_13_0)
|
|
FIELD(f_pub_sys_flag, nam_sys_flag, fld_flag, 1, ODS_13_0)
|
|
FIELD(f_pub_active_flag, nam_active_flag, fld_flag, 1, ODS_13_0)
|
|
FIELD(f_pub_auto_enable, nam_auto_enable, fld_flag, 1, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 52 (RDB$PUBLICATION_TABLES)
|
|
RELATION(nam_pub_tables, rel_pub_tables, ODS_13_0, rel_persistent)
|
|
FIELD(f_pubtab_pub_name, nam_pub_name, fld_pub_name, 1, ODS_13_0)
|
|
FIELD(f_pubtab_tab_name, nam_tab_name, fld_r_name, 1, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 53 (RDB$CONFIG)
|
|
RELATION(nam_config, rel_config, ODS_13_0, rel_virtual)
|
|
FIELD(f_cfg_id, nam_cfg_id, fld_cfg_id, 0, ODS_13_0)
|
|
FIELD(f_cfg_name, nam_cfg_name, fld_cfg_name, 0, ODS_13_0)
|
|
FIELD(f_cfg_value, nam_cfg_value, fld_cfg_value, 0, ODS_13_0)
|
|
FIELD(f_cfg_default, nam_cfg_default, fld_cfg_value, 0, ODS_13_0)
|
|
FIELD(f_cfg_is_set, nam_cfg_is_set, fld_cfg_is_set, 0, ODS_13_0)
|
|
FIELD(f_cfg_source, nam_cfg_source, fld_file_name2, 0, ODS_13_0)
|
|
END_RELATION
|
|
|
|
// Relation 54 (RDB$KEYWORDS)
|
|
RELATION(nam_keywords, rel_keywords, ODS_13_1, rel_virtual)
|
|
FIELD(f_keyword_name, nam_keyword_name, fld_keyword_name, 0, ODS_13_1)
|
|
FIELD(f_keyword_reserved, nam_keyword_reserved, fld_keyword_reserved, 0, ODS_13_1)
|
|
END_RELATION
|
|
|
|
// Relation 55 (MON$COMPILED_STATEMENTS)
|
|
RELATION(nam_mon_compiled_statements, rel_mon_compiled_statements, ODS_13_1, rel_virtual)
|
|
FIELD(f_mon_cmp_stmt_id, nam_mon_cmp_stmt_id, fld_stmt_id, 0, ODS_13_1)
|
|
FIELD(f_mon_cmp_stmt_sql_text, nam_mon_sql_text, fld_source, 0, ODS_13_1)
|
|
FIELD(f_mon_cmp_stmt_expl_plan, nam_mon_expl_plan, fld_source, 0, ODS_13_1)
|
|
FIELD(f_mon_cmp_stmt_name, nam_mon_obj_name, fld_gnr_name, 0, ODS_13_1)
|
|
FIELD(f_mon_cmp_stmt_type, nam_mon_obj_type, fld_obj_type, 0, ODS_13_1)
|
|
FIELD(f_mon_cmp_stmt_pkg_name, nam_mon_pkg_name, fld_pkg_name, 0, ODS_13_1)
|
|
FIELD(f_mon_cmp_stmt_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_13_1)
|
|
END_RELATION
|