From bfe2db317ce7ae7eb2ac51e80f67ab4fb99a259c Mon Sep 17 00:00:00 2001 From: Christopher Lenke <christopher.lenke@uni-bielefeld.de> Date: Wed, 20 Nov 2024 16:26:12 +0100 Subject: [PATCH] Update 133 files - /Procedures/address_to_top_uid_pg_text__text__text__text__text__text_.txt - /Procedures/build_tree_for_sector_pg.txt - /Procedures/check_kodierung_solo_pg_text__text__text__text__text__text__text__text__text__text__text__text__text__text__text_.txt - /Procedures/create_download_pg_varchar__varchar__varchar__varchar__varchar__varchar__int8__bool_.txt - /Procedures/create_kb_inst_trans_pg.txt - /Procedures/create_kb_tables_pg_text__text__text_.txt - /Procedures/exclude_ii_pg.txt - /Procedures/get_hi_tree_for_uid_pg_numeric__date__text_.txt - /Procedures/get_unassigned_pg.txt - /Procedures/modus_a_connect_pg_text__text_.txt - /Procedures/modus_s_holger_pg__.txt - /Procedures/pattern_matching_b_ii_pg_text__text__text_.txt - /Procedures/pattern_matching_b_iii_pg_varchar__varchar__varchar_.txt - /Procedures/pattern_matching_d_pg_text__text__text__text_.txt - /Procedures/run_icode_iv_pg_varchar__varchar__varchar__varchar_.txt - /Procedures/wostransfo_proc_pg_text__int8_.txt - /README.md - /Procedures/check_kodierung_solo_pg_text__text__text__text__text__text__text__text__text__text__text__text__text__text_.txt - /Functions/city_cleaning_pg_spalte_in_text_.txt - /Functions/get_adr_id_b_pg_varchar__varchar_.txt - /Functions/get_name_pg_int8_.txt - /Functions/is_hi_date_neu2_pg_int8__date_.txt - /Functions/is_hi_in_date_pg_int8__date__date_.txt - /Functions/is_hi_in_date_pg_numeric__date__date_.txt - /Functions/is_hi_pg_int8_.txt - /Functions/is_te_pg_int8_.txt - /Functions/is_te_pg_numeric_.txt - /Functions/is_te_plus_7_pg_int8_.txt - /Functions/next_uid_pg_my_uid_bigint_.txt - /Functions/unaccent_init_internal_.txt - /Functions/unaccent_lexize_internal__internal__internal__internal_.txt - /Functions/unaccent_regdictionary__text_.txt - /Functions/unaccent_text_.txt - /Functions/univ_first_pg_varchar_.txt - /Functions/valid_sector_mod_s_pg_die_inst_bigint__der_sektor_character_varying__das_jahr_bigint_.txt - /Functions/wos_transformation_pg_spalte_in_character_varying__art_bigint_.txt - /Basic tables/Trigger/trigger_descent.txt - /Basic tables/Trigger/trigger_domain.txt - /Basic tables/Trigger/trigger_exclude_pattern.txt - /Basic tables/Trigger/trigger_pattern_ges_like.txt - /Basic tables/Trigger/trigger_pattern_sammelkat_like.txt - /Basic tables/Trigger/trigger_relation.txt - /Basic tables/Trigger/trigger_u_name.txt - /Basic tables/Trigger/trigger_u_sector.txt - /Basic tables/Trigger/trigger_unit.txt - /Basic tables/Trigger/trigger_wos_standard_plus.txt - /Basic tables/Table functions/exclude_pattern_update_orders.txt - /Basic tables/Table functions/first_and_last_date_trigger_function.txt - /Basic tables/Table functions/pattern_delete_orders.txt - /Basic tables/Table functions/pattern_sk_update_orders.txt - /Basic tables/Table functions/pattern_to_regexp.txt - /Basic tables/Table functions/pattern_update_orders.txt - /Basic tables/Table functions/set_autoincrement.txt - /Basic tables/Table functions/trigger_lastupdate_and_username.txt - /Basic tables/Table functions/unit_insert_orders.txt - /Basic tables/Table functions/wos_st_plus_update_orders.txt - /Basic tables/Sequences/aenderungen.txt - /Basic tables/Sequences/descent.txt - /Basic tables/Sequences/domain.txt - /Basic tables/Sequences/exclude_pattern.txt - /Basic tables/Sequences/pattern_ges_like.txt - /Basic tables/Sequences/pattern_sammelkat_like.txt - /Basic tables/Sequences/relation.txt - /Basic tables/Sequences/type_relation.txt - /Basic tables/Sequences/u_name.txt - /Basic tables/Sequences/u_sector.txt - /Basic tables/Sequences/unit_uid.txt - /Basic tables/Sequences/wos_standard_plus.txt - /Procedures/address_to_top_uid_pg.sql - /Procedures/build_tree_for_sector_pg.sql - /Procedures/check_kodierung_solo_pg.sql - /Procedures/create_download_pg.sql - /Procedures/create_kb_inst_trans_pg.sql - /Procedures/create_kb_tables_pg.sql - /Procedures/exclude_ii_pg.sql - /Procedures/get_hi_tree_for_uid_pg.sql - /Procedures/get_unassigned_pg.sql - /Procedures/modus_a_connect_pg.sql - /Procedures/modus_s_holger_pg.sql - /Procedures/pattern_matching_b_ii_pg.sql - /Procedures/pattern_matching_b_iii_pg.sql - /Procedures/pattern_matching_d_pg.sql - /Procedures/run_icode_iv_pg.sql - /Procedures/wostransfo_proc_pg.sql - /Functions/city_cleaning_pg.sql - /Functions/get_adr_id_b_pg.sql - /Functions/get_name_pg.sql - /Functions/is_hi_date_neu2_pg.sql - /Functions/is_hi_in_date_pg.sql - /Functions/is_te_pg.sql - /Functions/is_hi_pg.sql - /Functions/is_te_plus_7_pg.sql - /Functions/next_uid_pg.sql - /Functions/unaccent_init.sql - /Functions/unaccent_lexize.sql - /Functions/unaccent_regdictionary.sql - /Functions/unaccent.sql - /Functions/univ_first_pg.sql - /Functions/valid_sector_mod_s_pg.sql - /Functions/wos_transformation_pg.sql - /Basic tables/Tables/process_info.csv - /Basic tables/Trigger/trigger_descent.sql - /Basic tables/Trigger/trigger_domain.sql - /Basic tables/Trigger/trigger_exclude_pattern.sql - /Basic tables/Trigger/trigger_pattern_ges_like.sql - /Basic tables/Trigger/trigger_pattern_sammelkat_like.sql - /Basic tables/Trigger/trigger_relation.sql - /Basic tables/Trigger/trigger_u_name.sql - /Basic tables/Trigger/trigger_u_sector.sql - /Basic tables/Trigger/trigger_unit.sql - /Basic tables/Trigger/trigger_wos_standard_plus.sql - /Basic tables/Table functions/exclude_pattern_update_orders.sql - /Basic tables/Table functions/first_and_last_date_trigger_function.sql - /Basic tables/Table functions/pattern_delete_orders.sql - /Basic tables/Table functions/pattern_sk_update_orders.sql - /Basic tables/Table functions/pattern_to_regexp.sql - /Basic tables/Table functions/pattern_update_orders.sql - /Basic tables/Table functions/set_autoincrement.sql - /Basic tables/Table functions/trigger_lastupdate_and_username.sql - /Basic tables/Table functions/unit_insert_orders.sql - /Basic tables/Table functions/wos_st_plus_update_orders.sql - /Basic tables/Sequences/aenderungen.sql - /Basic tables/Sequences/descent.sql - /Basic tables/Sequences/domain.sql - /Basic tables/Sequences/exclude_pattern.sql - /Basic tables/Sequences/pattern_ges_like.sql - /Basic tables/Sequences/pattern_sammelkat_like.sql - /Basic tables/Sequences/relation.sql - /Basic tables/Sequences/type_relation.sql - /Basic tables/Sequences/u_name.sql - /Basic tables/Sequences/u_sector.sql - /Basic tables/Sequences/unit_uid.sql - /Basic tables/Sequences/wos_standard_plus.sql --- .../{aenderungen.txt => aenderungen.sql} | 0 .../Sequences/{descent.txt => descent.sql} | 0 .../Sequences/{domain.txt => domain.sql} | 0 ...xclude_pattern.txt => exclude_pattern.sql} | 0 ...tern_ges_like.txt => pattern_ges_like.sql} | 0 ...at_like.txt => pattern_sammelkat_like.sql} | 0 .../Sequences/{relation.txt => relation.sql} | 0 .../{type_relation.txt => type_relation.sql} | 0 .../Sequences/{u_name.txt => u_name.sql} | 0 .../Sequences/{u_sector.txt => u_sector.sql} | 0 .../Sequences/{unit_uid.txt => unit_uid.sql} | 0 ...tandard_plus.txt => wos_standard_plus.sql} | 0 ....txt => exclude_pattern_update_orders.sql} | 0 ... first_and_last_date_trigger_function.sql} | 0 ...e_orders.txt => pattern_delete_orders.sql} | 0 ...rders.txt => pattern_sk_update_orders.sql} | 0 ...rn_to_regexp.txt => pattern_to_regexp.sql} | 0 ...e_orders.txt => pattern_update_orders.sql} | 0 ...utoincrement.txt => set_autoincrement.sql} | 0 ...xt => trigger_lastupdate_and_username.sql} | 0 ...sert_orders.txt => unit_insert_orders.sql} | 0 ...ders.txt => wos_st_plus_update_orders.sql} | 0 Basic tables/Tables/process_info.csv | 9 + ...rigger_descent.txt => trigger_descent.sql} | 0 ...{trigger_domain.txt => trigger_domain.sql} | 0 ...attern.txt => trigger_exclude_pattern.sql} | 0 ..._like.txt => trigger_pattern_ges_like.sql} | 0 ...txt => trigger_pattern_sammelkat_like.sql} | 0 ...gger_relation.txt => trigger_relation.sql} | 0 ...{trigger_u_name.txt => trigger_u_name.sql} | 0 ...gger_u_sector.txt => trigger_u_sector.sql} | 0 .../{trigger_unit.txt => trigger_unit.sql} | 0 ...plus.txt => trigger_wos_standard_plus.sql} | 0 ...alte_in_text_.txt => city_cleaning_pg.sql} | 0 ...char__varchar_.txt => get_adr_id_b_pg.sql} | 0 ...{get_name_pg_int8_.txt => get_name_pg.sql} | 0 ...int8__date_.txt => is_hi_date_neu2_pg.sql} | 0 ...__date__date_.txt => is_hi_in_date_pg.sql} | 0 .../is_hi_in_date_pg_numeric__date__date_.txt | 34 --- .../{is_hi_pg_int8_.txt => is_hi_pg.sql} | 0 .../{is_te_pg_int8_.txt => is_te_pg.sql} | 0 Functions/is_te_pg_numeric_.txt | 27 -- ...lus_7_pg_int8_.txt => is_te_plus_7_pg.sql} | 0 ..._pg_my_uid_bigint_.txt => next_uid_pg.sql} | 0 .../{unaccent_text_.txt => unaccent.sql} | 0 ...t_init_internal_.txt => unaccent_init.sql} | 0 ...nal__internal_.txt => unaccent_lexize.sql} | 1 - ...__text_.txt => unaccent_regdictionary.sql} | 1 - ...irst_pg_varchar_.txt => univ_first_pg.sql} | 0 ..._bigint_.txt => valid_sector_mod_s_pg.sql} | 0 ..._bigint_.txt => wos_transformation_pg.sql} | 0 ...t__text_.txt => address_to_top_uid_pg.sql} | 0 ...or_pg.txt => build_tree_for_sector_pg.sql} | 0 ..._text_.txt => check_kodierung_solo_pg.sql} | 0 ...t__text__text__text__text__text__text_.txt | 288 ------------------ ...int8__bool_.txt => create_download_pg.sql} | 0 ...ans_pg.txt => create_kb_inst_trans_pg.sql} | 0 ...ext__text_.txt => create_kb_tables_pg.sql} | 0 .../{exclude_ii_pg.txt => exclude_ii_pg.sql} | 0 ...__text_.txt => get_hi_tree_for_uid_pg.sql} | 0 ...nassigned_pg.txt => get_unassigned_pg.sql} | 0 ...text__text_.txt => modus_a_connect_pg.sql} | 0 ..._holger_pg__.txt => modus_s_holger_pg.sql} | 0 ...text_.txt => pattern_matching_b_ii_pg.sql} | 0 ...har_.txt => pattern_matching_b_iii_pg.sql} | 0 ...t__text_.txt => pattern_matching_d_pg.sql} | 0 ...char__varchar_.txt => run_icode_iv_pg.sql} | 0 ...text__int8_.txt => wostransfo_proc_pg.sql} | 0 README.md | 93 ------ 69 files changed, 9 insertions(+), 444 deletions(-) rename Basic tables/Sequences/{aenderungen.txt => aenderungen.sql} (100%) rename Basic tables/Sequences/{descent.txt => descent.sql} (100%) rename Basic tables/Sequences/{domain.txt => domain.sql} (100%) rename Basic tables/Sequences/{exclude_pattern.txt => exclude_pattern.sql} (100%) rename Basic tables/Sequences/{pattern_ges_like.txt => pattern_ges_like.sql} (100%) rename Basic tables/Sequences/{pattern_sammelkat_like.txt => pattern_sammelkat_like.sql} (100%) rename Basic tables/Sequences/{relation.txt => relation.sql} (100%) rename Basic tables/Sequences/{type_relation.txt => type_relation.sql} (100%) rename Basic tables/Sequences/{u_name.txt => u_name.sql} (100%) rename Basic tables/Sequences/{u_sector.txt => u_sector.sql} (100%) rename Basic tables/Sequences/{unit_uid.txt => unit_uid.sql} (100%) rename Basic tables/Sequences/{wos_standard_plus.txt => wos_standard_plus.sql} (100%) rename Basic tables/Table functions/{exclude_pattern_update_orders.txt => exclude_pattern_update_orders.sql} (100%) rename Basic tables/Table functions/{first_and_last_date_trigger_function.txt => first_and_last_date_trigger_function.sql} (100%) rename Basic tables/Table functions/{pattern_delete_orders.txt => pattern_delete_orders.sql} (100%) rename Basic tables/Table functions/{pattern_sk_update_orders.txt => pattern_sk_update_orders.sql} (100%) rename Basic tables/Table functions/{pattern_to_regexp.txt => pattern_to_regexp.sql} (100%) rename Basic tables/Table functions/{pattern_update_orders.txt => pattern_update_orders.sql} (100%) rename Basic tables/Table functions/{set_autoincrement.txt => set_autoincrement.sql} (100%) rename Basic tables/Table functions/{trigger_lastupdate_and_username.txt => trigger_lastupdate_and_username.sql} (100%) rename Basic tables/Table functions/{unit_insert_orders.txt => unit_insert_orders.sql} (100%) rename Basic tables/Table functions/{wos_st_plus_update_orders.txt => wos_st_plus_update_orders.sql} (100%) create mode 100644 Basic tables/Tables/process_info.csv rename Basic tables/Trigger/{trigger_descent.txt => trigger_descent.sql} (100%) rename Basic tables/Trigger/{trigger_domain.txt => trigger_domain.sql} (100%) rename Basic tables/Trigger/{trigger_exclude_pattern.txt => trigger_exclude_pattern.sql} (100%) rename Basic tables/Trigger/{trigger_pattern_ges_like.txt => trigger_pattern_ges_like.sql} (100%) rename Basic tables/Trigger/{trigger_pattern_sammelkat_like.txt => trigger_pattern_sammelkat_like.sql} (100%) rename Basic tables/Trigger/{trigger_relation.txt => trigger_relation.sql} (100%) rename Basic tables/Trigger/{trigger_u_name.txt => trigger_u_name.sql} (100%) rename Basic tables/Trigger/{trigger_u_sector.txt => trigger_u_sector.sql} (100%) rename Basic tables/Trigger/{trigger_unit.txt => trigger_unit.sql} (100%) rename Basic tables/Trigger/{trigger_wos_standard_plus.txt => trigger_wos_standard_plus.sql} (100%) rename Functions/{city_cleaning_pg_spalte_in_text_.txt => city_cleaning_pg.sql} (100%) rename Functions/{get_adr_id_b_pg_varchar__varchar_.txt => get_adr_id_b_pg.sql} (100%) rename Functions/{get_name_pg_int8_.txt => get_name_pg.sql} (100%) rename Functions/{is_hi_date_neu2_pg_int8__date_.txt => is_hi_date_neu2_pg.sql} (100%) rename Functions/{is_hi_in_date_pg_int8__date__date_.txt => is_hi_in_date_pg.sql} (100%) delete mode 100644 Functions/is_hi_in_date_pg_numeric__date__date_.txt rename Functions/{is_hi_pg_int8_.txt => is_hi_pg.sql} (100%) rename Functions/{is_te_pg_int8_.txt => is_te_pg.sql} (100%) delete mode 100644 Functions/is_te_pg_numeric_.txt rename Functions/{is_te_plus_7_pg_int8_.txt => is_te_plus_7_pg.sql} (100%) rename Functions/{next_uid_pg_my_uid_bigint_.txt => next_uid_pg.sql} (100%) rename Functions/{unaccent_text_.txt => unaccent.sql} (100%) rename Functions/{unaccent_init_internal_.txt => unaccent_init.sql} (100%) rename Functions/{unaccent_lexize_internal__internal__internal__internal_.txt => unaccent_lexize.sql} (96%) rename Functions/{unaccent_regdictionary__text_.txt => unaccent_regdictionary.sql} (95%) rename Functions/{univ_first_pg_varchar_.txt => univ_first_pg.sql} (100%) rename Functions/{valid_sector_mod_s_pg_die_inst_bigint__der_sektor_character_varying__das_jahr_bigint_.txt => valid_sector_mod_s_pg.sql} (100%) rename Functions/{wos_transformation_pg_spalte_in_character_varying__art_bigint_.txt => wos_transformation_pg.sql} (100%) rename Procedures/{address_to_top_uid_pg_text__text__text__text__text__text_.txt => address_to_top_uid_pg.sql} (100%) rename Procedures/{build_tree_for_sector_pg.txt => build_tree_for_sector_pg.sql} (100%) rename Procedures/{check_kodierung_solo_pg_text__text__text__text__text__text__text__text__text__text__text__text__text__text__text_.txt => check_kodierung_solo_pg.sql} (100%) delete mode 100644 Procedures/check_kodierung_solo_pg_text__text__text__text__text__text__text__text__text__text__text__text__text__text_.txt rename Procedures/{create_download_pg_varchar__varchar__varchar__varchar__varchar__varchar__int8__bool_.txt => create_download_pg.sql} (100%) rename Procedures/{create_kb_inst_trans_pg.txt => create_kb_inst_trans_pg.sql} (100%) rename Procedures/{create_kb_tables_pg_text__text__text_.txt => create_kb_tables_pg.sql} (100%) rename Procedures/{exclude_ii_pg.txt => exclude_ii_pg.sql} (100%) rename Procedures/{get_hi_tree_for_uid_pg_numeric__date__text_.txt => get_hi_tree_for_uid_pg.sql} (100%) rename Procedures/{get_unassigned_pg.txt => get_unassigned_pg.sql} (100%) rename Procedures/{modus_a_connect_pg_text__text_.txt => modus_a_connect_pg.sql} (100%) rename Procedures/{modus_s_holger_pg__.txt => modus_s_holger_pg.sql} (100%) rename Procedures/{pattern_matching_b_ii_pg_text__text__text_.txt => pattern_matching_b_ii_pg.sql} (100%) rename Procedures/{pattern_matching_b_iii_pg_varchar__varchar__varchar_.txt => pattern_matching_b_iii_pg.sql} (100%) rename Procedures/{pattern_matching_d_pg_text__text__text__text_.txt => pattern_matching_d_pg.sql} (100%) rename Procedures/{run_icode_iv_pg_varchar__varchar__varchar__varchar_.txt => run_icode_iv_pg.sql} (100%) rename Procedures/{wostransfo_proc_pg_text__int8_.txt => wostransfo_proc_pg.sql} (100%) delete mode 100644 README.md diff --git a/Basic tables/Sequences/aenderungen.txt b/Basic tables/Sequences/aenderungen.sql similarity index 100% rename from Basic tables/Sequences/aenderungen.txt rename to Basic tables/Sequences/aenderungen.sql diff --git a/Basic tables/Sequences/descent.txt b/Basic tables/Sequences/descent.sql similarity index 100% rename from Basic tables/Sequences/descent.txt rename to Basic tables/Sequences/descent.sql diff --git a/Basic tables/Sequences/domain.txt b/Basic tables/Sequences/domain.sql similarity index 100% rename from Basic tables/Sequences/domain.txt rename to Basic tables/Sequences/domain.sql diff --git a/Basic tables/Sequences/exclude_pattern.txt b/Basic tables/Sequences/exclude_pattern.sql similarity index 100% rename from Basic tables/Sequences/exclude_pattern.txt rename to Basic tables/Sequences/exclude_pattern.sql diff --git a/Basic tables/Sequences/pattern_ges_like.txt b/Basic tables/Sequences/pattern_ges_like.sql similarity index 100% rename from Basic tables/Sequences/pattern_ges_like.txt rename to Basic tables/Sequences/pattern_ges_like.sql diff --git a/Basic tables/Sequences/pattern_sammelkat_like.txt b/Basic tables/Sequences/pattern_sammelkat_like.sql similarity index 100% rename from Basic tables/Sequences/pattern_sammelkat_like.txt rename to Basic tables/Sequences/pattern_sammelkat_like.sql diff --git a/Basic tables/Sequences/relation.txt b/Basic tables/Sequences/relation.sql similarity index 100% rename from Basic tables/Sequences/relation.txt rename to Basic tables/Sequences/relation.sql diff --git a/Basic tables/Sequences/type_relation.txt b/Basic tables/Sequences/type_relation.sql similarity index 100% rename from Basic tables/Sequences/type_relation.txt rename to Basic tables/Sequences/type_relation.sql diff --git a/Basic tables/Sequences/u_name.txt b/Basic tables/Sequences/u_name.sql similarity index 100% rename from Basic tables/Sequences/u_name.txt rename to Basic tables/Sequences/u_name.sql diff --git a/Basic tables/Sequences/u_sector.txt b/Basic tables/Sequences/u_sector.sql similarity index 100% rename from Basic tables/Sequences/u_sector.txt rename to Basic tables/Sequences/u_sector.sql diff --git a/Basic tables/Sequences/unit_uid.txt b/Basic tables/Sequences/unit_uid.sql similarity index 100% rename from Basic tables/Sequences/unit_uid.txt rename to Basic tables/Sequences/unit_uid.sql diff --git a/Basic tables/Sequences/wos_standard_plus.txt b/Basic tables/Sequences/wos_standard_plus.sql similarity index 100% rename from Basic tables/Sequences/wos_standard_plus.txt rename to Basic tables/Sequences/wos_standard_plus.sql diff --git a/Basic tables/Table functions/exclude_pattern_update_orders.txt b/Basic tables/Table functions/exclude_pattern_update_orders.sql similarity index 100% rename from Basic tables/Table functions/exclude_pattern_update_orders.txt rename to Basic tables/Table functions/exclude_pattern_update_orders.sql diff --git a/Basic tables/Table functions/first_and_last_date_trigger_function.txt b/Basic tables/Table functions/first_and_last_date_trigger_function.sql similarity index 100% rename from Basic tables/Table functions/first_and_last_date_trigger_function.txt rename to Basic tables/Table functions/first_and_last_date_trigger_function.sql diff --git a/Basic tables/Table functions/pattern_delete_orders.txt b/Basic tables/Table functions/pattern_delete_orders.sql similarity index 100% rename from Basic tables/Table functions/pattern_delete_orders.txt rename to Basic tables/Table functions/pattern_delete_orders.sql diff --git a/Basic tables/Table functions/pattern_sk_update_orders.txt b/Basic tables/Table functions/pattern_sk_update_orders.sql similarity index 100% rename from Basic tables/Table functions/pattern_sk_update_orders.txt rename to Basic tables/Table functions/pattern_sk_update_orders.sql diff --git a/Basic tables/Table functions/pattern_to_regexp.txt b/Basic tables/Table functions/pattern_to_regexp.sql similarity index 100% rename from Basic tables/Table functions/pattern_to_regexp.txt rename to Basic tables/Table functions/pattern_to_regexp.sql diff --git a/Basic tables/Table functions/pattern_update_orders.txt b/Basic tables/Table functions/pattern_update_orders.sql similarity index 100% rename from Basic tables/Table functions/pattern_update_orders.txt rename to Basic tables/Table functions/pattern_update_orders.sql diff --git a/Basic tables/Table functions/set_autoincrement.txt b/Basic tables/Table functions/set_autoincrement.sql similarity index 100% rename from Basic tables/Table functions/set_autoincrement.txt rename to Basic tables/Table functions/set_autoincrement.sql diff --git a/Basic tables/Table functions/trigger_lastupdate_and_username.txt b/Basic tables/Table functions/trigger_lastupdate_and_username.sql similarity index 100% rename from Basic tables/Table functions/trigger_lastupdate_and_username.txt rename to Basic tables/Table functions/trigger_lastupdate_and_username.sql diff --git a/Basic tables/Table functions/unit_insert_orders.txt b/Basic tables/Table functions/unit_insert_orders.sql similarity index 100% rename from Basic tables/Table functions/unit_insert_orders.txt rename to Basic tables/Table functions/unit_insert_orders.sql diff --git a/Basic tables/Table functions/wos_st_plus_update_orders.txt b/Basic tables/Table functions/wos_st_plus_update_orders.sql similarity index 100% rename from Basic tables/Table functions/wos_st_plus_update_orders.txt rename to Basic tables/Table functions/wos_st_plus_update_orders.sql diff --git a/Basic tables/Tables/process_info.csv b/Basic tables/Tables/process_info.csv new file mode 100644 index 0000000..e009b66 --- /dev/null +++ b/Basic tables/Tables/process_info.csv @@ -0,0 +1,9 @@ +CREATE TABLE processing.process_info ( + +prozess varchar NULL, + +ereignis varchar NULL, + +zeit varchar NULL + +); \ No newline at end of file diff --git a/Basic tables/Trigger/trigger_descent.txt b/Basic tables/Trigger/trigger_descent.sql similarity index 100% rename from Basic tables/Trigger/trigger_descent.txt rename to Basic tables/Trigger/trigger_descent.sql diff --git a/Basic tables/Trigger/trigger_domain.txt b/Basic tables/Trigger/trigger_domain.sql similarity index 100% rename from Basic tables/Trigger/trigger_domain.txt rename to Basic tables/Trigger/trigger_domain.sql diff --git a/Basic tables/Trigger/trigger_exclude_pattern.txt b/Basic tables/Trigger/trigger_exclude_pattern.sql similarity index 100% rename from Basic tables/Trigger/trigger_exclude_pattern.txt rename to Basic tables/Trigger/trigger_exclude_pattern.sql diff --git a/Basic tables/Trigger/trigger_pattern_ges_like.txt b/Basic tables/Trigger/trigger_pattern_ges_like.sql similarity index 100% rename from Basic tables/Trigger/trigger_pattern_ges_like.txt rename to Basic tables/Trigger/trigger_pattern_ges_like.sql diff --git a/Basic tables/Trigger/trigger_pattern_sammelkat_like.txt b/Basic tables/Trigger/trigger_pattern_sammelkat_like.sql similarity index 100% rename from Basic tables/Trigger/trigger_pattern_sammelkat_like.txt rename to Basic tables/Trigger/trigger_pattern_sammelkat_like.sql diff --git a/Basic tables/Trigger/trigger_relation.txt b/Basic tables/Trigger/trigger_relation.sql similarity index 100% rename from Basic tables/Trigger/trigger_relation.txt rename to Basic tables/Trigger/trigger_relation.sql diff --git a/Basic tables/Trigger/trigger_u_name.txt b/Basic tables/Trigger/trigger_u_name.sql similarity index 100% rename from Basic tables/Trigger/trigger_u_name.txt rename to Basic tables/Trigger/trigger_u_name.sql diff --git a/Basic tables/Trigger/trigger_u_sector.txt b/Basic tables/Trigger/trigger_u_sector.sql similarity index 100% rename from Basic tables/Trigger/trigger_u_sector.txt rename to Basic tables/Trigger/trigger_u_sector.sql diff --git a/Basic tables/Trigger/trigger_unit.txt b/Basic tables/Trigger/trigger_unit.sql similarity index 100% rename from Basic tables/Trigger/trigger_unit.txt rename to Basic tables/Trigger/trigger_unit.sql diff --git a/Basic tables/Trigger/trigger_wos_standard_plus.txt b/Basic tables/Trigger/trigger_wos_standard_plus.sql similarity index 100% rename from Basic tables/Trigger/trigger_wos_standard_plus.txt rename to Basic tables/Trigger/trigger_wos_standard_plus.sql diff --git a/Functions/city_cleaning_pg_spalte_in_text_.txt b/Functions/city_cleaning_pg.sql similarity index 100% rename from Functions/city_cleaning_pg_spalte_in_text_.txt rename to Functions/city_cleaning_pg.sql diff --git a/Functions/get_adr_id_b_pg_varchar__varchar_.txt b/Functions/get_adr_id_b_pg.sql similarity index 100% rename from Functions/get_adr_id_b_pg_varchar__varchar_.txt rename to Functions/get_adr_id_b_pg.sql diff --git a/Functions/get_name_pg_int8_.txt b/Functions/get_name_pg.sql similarity index 100% rename from Functions/get_name_pg_int8_.txt rename to Functions/get_name_pg.sql diff --git a/Functions/is_hi_date_neu2_pg_int8__date_.txt b/Functions/is_hi_date_neu2_pg.sql similarity index 100% rename from Functions/is_hi_date_neu2_pg_int8__date_.txt rename to Functions/is_hi_date_neu2_pg.sql diff --git a/Functions/is_hi_in_date_pg_int8__date__date_.txt b/Functions/is_hi_in_date_pg.sql similarity index 100% rename from Functions/is_hi_in_date_pg_int8__date__date_.txt rename to Functions/is_hi_in_date_pg.sql diff --git a/Functions/is_hi_in_date_pg_numeric__date__date_.txt b/Functions/is_hi_in_date_pg_numeric__date__date_.txt deleted file mode 100644 index c460ee7..0000000 --- a/Functions/is_hi_in_date_pg_numeric__date__date_.txt +++ /dev/null @@ -1,34 +0,0 @@ --- DROP FUNCTION schema_xyz.is_hi_in_date_pg(numeric, date, date); - -CREATE OR REPLACE FUNCTION schema_xyz.is_hi_in_date_pg(my_uid numeric, my_first_date date, my_last_date date) - RETURNS bigint - LANGUAGE plpgsql -AS $function$ - - -DECLARE - - -ergebnis bigint; - - -BEGIN - -select count(*) into ergebnis -from schema_xyz.relation where uid_1=my_uid and uid_0=0 -and type in (0,1) -and ((first_date >= my_first_date and first_date <= my_last_date) -or (last_date >= my_first_date and last_date <= my_last_date) -or (first_date <= my_first_date and last_date >= my_last_date) -); - - -if ergebnis >0 then ergebnis:=1; -else ergebnis:=0; -end if; - -RETURN ergebnis; -end; - -$function$ -; diff --git a/Functions/is_hi_pg_int8_.txt b/Functions/is_hi_pg.sql similarity index 100% rename from Functions/is_hi_pg_int8_.txt rename to Functions/is_hi_pg.sql diff --git a/Functions/is_te_pg_int8_.txt b/Functions/is_te_pg.sql similarity index 100% rename from Functions/is_te_pg_int8_.txt rename to Functions/is_te_pg.sql diff --git a/Functions/is_te_pg_numeric_.txt b/Functions/is_te_pg_numeric_.txt deleted file mode 100644 index ee9ecda..0000000 --- a/Functions/is_te_pg_numeric_.txt +++ /dev/null @@ -1,27 +0,0 @@ --- DROP FUNCTION schema_xyz.is_te_pg(numeric); - -CREATE OR REPLACE FUNCTION schema_xyz.is_te_pg(my_uid numeric) - RETURNS bigint - LANGUAGE plpgsql -AS $function$ - -DECLARE - - -ergebnis bigint; - - -BEGIN - -select count(*) into STRICT ergebnis -from schema_xyz.relation -where uid_1=my_uid and uid_0>0 and type in (0, 1); - -if ergebnis >0 then ergebnis:=1; -else ergebnis:=0; -end if; - -RETURN ergebnis; -end; -$function$ -; diff --git a/Functions/is_te_plus_7_pg_int8_.txt b/Functions/is_te_plus_7_pg.sql similarity index 100% rename from Functions/is_te_plus_7_pg_int8_.txt rename to Functions/is_te_plus_7_pg.sql diff --git a/Functions/next_uid_pg_my_uid_bigint_.txt b/Functions/next_uid_pg.sql similarity index 100% rename from Functions/next_uid_pg_my_uid_bigint_.txt rename to Functions/next_uid_pg.sql diff --git a/Functions/unaccent_text_.txt b/Functions/unaccent.sql similarity index 100% rename from Functions/unaccent_text_.txt rename to Functions/unaccent.sql diff --git a/Functions/unaccent_init_internal_.txt b/Functions/unaccent_init.sql similarity index 100% rename from Functions/unaccent_init_internal_.txt rename to Functions/unaccent_init.sql diff --git a/Functions/unaccent_lexize_internal__internal__internal__internal_.txt b/Functions/unaccent_lexize.sql similarity index 96% rename from Functions/unaccent_lexize_internal__internal__internal__internal_.txt rename to Functions/unaccent_lexize.sql index 296426f..966ce1d 100644 --- a/Functions/unaccent_lexize_internal__internal__internal__internal_.txt +++ b/Functions/unaccent_lexize.sql @@ -1,4 +1,3 @@ - -- DROP FUNCTION schema_xyz.unaccent_lexize(internal, internal, internal, internal); CREATE OR REPLACE FUNCTION schema_xyz.unaccent_lexize(internal, internal, internal, internal) diff --git a/Functions/unaccent_regdictionary__text_.txt b/Functions/unaccent_regdictionary.sql similarity index 95% rename from Functions/unaccent_regdictionary__text_.txt rename to Functions/unaccent_regdictionary.sql index 84d87b6..69fa8a4 100644 --- a/Functions/unaccent_regdictionary__text_.txt +++ b/Functions/unaccent_regdictionary.sql @@ -1,4 +1,3 @@ - -- DROP FUNCTION schema_xyz.unaccent(regdictionary, text); CREATE OR REPLACE FUNCTION schema_xyz.unaccent(regdictionary, text) diff --git a/Functions/univ_first_pg_varchar_.txt b/Functions/univ_first_pg.sql similarity index 100% rename from Functions/univ_first_pg_varchar_.txt rename to Functions/univ_first_pg.sql diff --git a/Functions/valid_sector_mod_s_pg_die_inst_bigint__der_sektor_character_varying__das_jahr_bigint_.txt b/Functions/valid_sector_mod_s_pg.sql similarity index 100% rename from Functions/valid_sector_mod_s_pg_die_inst_bigint__der_sektor_character_varying__das_jahr_bigint_.txt rename to Functions/valid_sector_mod_s_pg.sql diff --git a/Functions/wos_transformation_pg_spalte_in_character_varying__art_bigint_.txt b/Functions/wos_transformation_pg.sql similarity index 100% rename from Functions/wos_transformation_pg_spalte_in_character_varying__art_bigint_.txt rename to Functions/wos_transformation_pg.sql diff --git a/Procedures/address_to_top_uid_pg_text__text__text__text__text__text_.txt b/Procedures/address_to_top_uid_pg.sql similarity index 100% rename from Procedures/address_to_top_uid_pg_text__text__text__text__text__text_.txt rename to Procedures/address_to_top_uid_pg.sql diff --git a/Procedures/build_tree_for_sector_pg.txt b/Procedures/build_tree_for_sector_pg.sql similarity index 100% rename from Procedures/build_tree_for_sector_pg.txt rename to Procedures/build_tree_for_sector_pg.sql diff --git a/Procedures/check_kodierung_solo_pg_text__text__text__text__text__text__text__text__text__text__text__text__text__text__text_.txt b/Procedures/check_kodierung_solo_pg.sql similarity index 100% rename from Procedures/check_kodierung_solo_pg_text__text__text__text__text__text__text__text__text__text__text__text__text__text__text_.txt rename to Procedures/check_kodierung_solo_pg.sql diff --git a/Procedures/check_kodierung_solo_pg_text__text__text__text__text__text__text__text__text__text__text__text__text__text_.txt b/Procedures/check_kodierung_solo_pg_text__text__text__text__text__text__text__text__text__text__text__text__text__text_.txt deleted file mode 100644 index 87a0c93..0000000 --- a/Procedures/check_kodierung_solo_pg_text__text__text__text__text__text__text__text__text__text__text__text__text__text_.txt +++ /dev/null @@ -1,288 +0,0 @@ --- DROP PROCEDURE schema_xyz.check_kodierung_solo_pg(text, text, text, text, text, text, text, text, text, text, text, text, text, text, text); - -CREATE OR REPLACE PROCEDURE schema_xyz.check_kodierung_solo_pg(ergebnis_tab_name text, basis_tab text, tab_addr_inst_sec_a text, tab_addr_inst_sec_s text, tab_inst text, tab_sectors text, tab_s_inst_sec text, tab_a_inst_sec text, tab_inst_trans text, adr_spalte text, dok_spalte text, name_stichprobentab_1 text, name_stichprobentab_2 text, py_spalte text) - LANGUAGE plpgsql -AS $procedure$ - BEGIN - - - DECLARE - -str varchar(1000); -endyear integer; -cnt_total integer; - - -BEGIN - -EXECUTE 'drop table if exists '||ergebnis_tab_name; -EXECUTE 'create table '||ergebnis_tab_name||'(Thema varchar(1000), Beschreibung varchar(1000), -ergebnis numeric, gewuenschtes_ergebnis varchar(100),sql_ varchar(1000))'; -commit; - - -/*** Constraints Check ***/ - -str:='select count(*) from '||tab_inst_trans||' where not inst_ante in (select kb_inst_id from '||tab_inst||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', ''Anzahl inst_ante (aus inst_trans) nicht in kb_inst'', count(*), 0, '''||str||''' -from '||tab_inst_trans||' where not inst_ante in (select kb_inst_id from '||tab_inst||')'; - -str:='select count(*) from '||tab_inst_trans||' where not inst_post in (select kb_inst_id from '||tab_inst||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', ''Anzahl inst_post (aus inst_trans) nicht in kb_inst'', count(*), 0, '''||str||''' -from '||tab_inst_trans||' where not inst_post in (select kb_inst_id from '||tab_inst||')'; - -str:='select count(*) from '||tab_addr_inst_sec_s||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', ''Anzahl kb_inst_id (aus addr_inst_s) nicht in kb_inst'', count(*), 0, '''||str||''' -from '||tab_addr_inst_sec_s||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||')'; - -str:='select count(*) from '||tab_addr_inst_sec_a||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', ''Anzahl kb_inst_id (aus addr_inst_a) nicht in kb_inst'', count(*), 0, '''||str||''' -from '||tab_addr_inst_sec_a||' where not kb_inst_id in (select -kb_inst_id from '||tab_inst||')'; - -commit; - -str:='select count(*) from '||tab_a_inst_sec||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', ''Anzahl kb_inst_id (aus a_inst_sec) nicht in kb_inst'', count(*), 0, '''||str||''' -from '||tab_a_inst_sec||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||')'; - -str:='select count(*) from '||tab_s_inst_sec||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', ''Anzahl kb_inst_id (aus s_inst_sec) nicht in kb_inst'', count(*), 0, '''||str||''' -from '||tab_s_inst_sec||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||')'; - -str:='select count(*) from '||tab_a_inst_sec||' where not kb_sector_id in (select kb_sector_id from '||tab_sectors||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', ''Anzahl kb_sector_id (aus a_inst_sec) nicht in kb_sectors'', count(*), 0, '''||str||''' -from '||tab_a_inst_sec||' where not kb_sector_id in (select kb_sector_id from '||tab_sectors||')'; - -str:='select count(*) from '||tab_s_inst_sec||' where not kb_sector_id in (select kb_sector_id from '||tab_sectors||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', ''Anzahl kb_sector_id (aus s_inst_sec) nicht in kb_sectors'', count(*), 0, '''||str||''' -from '||tab_s_inst_sec||' where not kb_sector_id in (select kb_sector_id from '||tab_sectors||')'; - -str:='select count(*) from '||tab_addr_inst_sec_s||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||') and not kb_inst_id=3987 and not kb_inst_id=3830'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', ''Anzahl fk_inst aus addr_inst_s nicht in kb_inst'', count(*), 0, '''||str||''' -from '||tab_addr_inst_sec_s||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||') and not kb_inst_id=3987 and not kb_inst_id=3830'; - -str:='select count(*) from '||tab_addr_inst_sec_a||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||') and not kb_inst_id=3987 and not kb_inst_id=3830'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', ''Anzahl fk_inst aus addr_inst_a nicht in kb_inst'', count(*), 0, '''||str||''' -from '||tab_addr_inst_sec_a||' where not kb_inst_id in (select kb_inst_id from '||tab_inst||') and not kb_inst_id=3987 and not kb_inst_id=3830'; - -commit; - - -str:='select count(distinct(xxx.single_sector_id) from (select unnest(kb_sector_id) as single_kb_sector_id -from '||tab_addr_inst_sec_s||') as xxx -where not single_kb_sector_id in (select kb_sector_id from '||tab_sectors||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', -''Anzahl distinkter kb_sector_id aus addr_inst_sec_s nicht in kb_sector'', -count(distinct(xxx.single_kb_sector_id)), -0, -'''||str||''' -from (select unnest(kb_sector_id) as single_kb_sector_id -from '||tab_addr_inst_sec_s||') as xxx -where not single_kb_sector_id in (select kb_sector_id from '||tab_sectors||')'; -commit; - -str:='select count(distinct(xxx.single_sector_id) from (select unnest(kb_sector_id) as single_kb_sector_id -from '||tab_addr_inst_sec_a||') as xxx -where not single_kb_sector_id in (select kb_sector_id from '||tab_sectors||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Constraints Check'', -''Anzahl distinkter kb_sector_id aus addr_inst_sec_s nicht in kb_sector'', -count(distinct(xxx.single_kb_sector_id)), -0, -'''||str||''' -from (select unnest(kb_sector_id) as single_kb_sector_id -from '||tab_addr_inst_sec_a||') as xxx -where not single_kb_sector_id in (select kb_sector_id from '||tab_sectors||')'; -commit; - - -/*** Stichprobentabellen erstellen ***/ - -EXECUTE 'drop table if exists '||name_stichprobentab_1; -EXECUTE 'create table '||name_stichprobentab_1||' as ( -select * from (select * from '||tab_addr_inst_sec_s||' -order by random()) as xyz limit 100)'; -commit; -EXECUTE 'insert into '||ergebnis_tab_name||' values (''Name Stichprobentabelle 1 (Zufallsauswahl 100 Zuordnungen Modus S)'','''||name_stichprobentab_1||''',null, null, null)'; -commit; - -execute 'drop table if exists '||name_stichprobentab_2||'_tmp'; -execute 'create index on '||tab_addr_inst_sec_s||'('||adr_spalte||')'; -execute 'create table '||name_stichprobentab_2||'_tmp as ( -select a.'||adr_spalte||' -from '||basis_tab||' a -left join '||tab_addr_inst_sec_s||' b -on a.'||adr_spalte||' = b.'||adr_spalte||' -where b.'||adr_spalte||' is null)'; -commit; -execute 'drop table if exists '||name_stichprobentab_2||'_tmp_1'; -execute 'create table '||name_stichprobentab_2||'_tmp_1 as ( -select distinct(upper('||adr_spalte||')) as '||adr_spalte||' -from '||name_stichprobentab_2||'_tmp)'; -commit; - -execute 'drop index if exists processing.i_check_kodierung_upper_adr'; -execute 'create index i_check_kodierung_upper_adr on '||tab_addr_inst_sec_s||'(upper('||adr_spalte||'))'; -execute 'delete from '||name_stichprobentab_2||'_tmp_1 -where '||adr_spalte||' in (select upper('||adr_spalte||') from '||tab_addr_inst_sec_s||')'; -commit; -EXECUTE 'drop table if exists '||name_stichprobentab_2; -EXECUTE 'create table '||name_stichprobentab_2||' as ( -select * from '||name_stichprobentab_2||'_tmp_1 -where random() < 0.01 -limit 100 -)'; -commit; -EXECUTE 'insert into '||ergebnis_tab_name||' values (''Name Stichprobentabelle 2 (Zufallsauswahl 100 unkodierte)'','''||name_stichprobentab_2||''',null, null, null)'; -commit; -EXECUTE 'drop table if exists '||name_stichprobentab_2||'_tmp'; -EXECUTE 'drop table if exists '||name_stichprobentab_2||'_tmp_1'; -commit; - -/*** Statistik ***/ - -/* Adressen */ - -str:='select count(distinct upper('||adr_spalte||')) from '||basis_tab; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Statistik'', -''Anzahl dist Adressen'', count(distinct upper('||adr_spalte||')), null, '''||str||''' -from '||basis_tab; -commit; - -str:='select count(distinct upper('||adr_spalte||')) from '||basis_tab||' -where upper('||adr_spalte||') in ( -select upper('||adr_spalte||') from '||tab_addr_inst_sec_s||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Statistik'', -''Anzahl dist Adressen, zugeordnet'', count(distinct upper('||adr_spalte||')), null, '''||str||''' -from '||basis_tab||' where upper('||adr_spalte||') in ( -select upper('||adr_spalte||') from '||tab_addr_inst_sec_s||')'; -commit; - -EXECUTE 'insert into '||ergebnis_tab_name||' -select ''Statistik'', ''Anteil (in %) zugeordnete Adressen'', -round((100*(select ergebnis from '||ergebnis_tab_name||' -where beschreibung=''Anzahl dist Adressen, zugeordnet'') -/(select ergebnis from '||ergebnis_tab_name||' where beschreibung=''Anzahl dist Adressen'')),2), null, null'; -commit; - - -/* Adress-ut-Kombinationen */ - -str:='select '||dok_spalte||',upper('||adr_spalte||') -from '||basis_tab||' group by '||dok_spalte||',upper('||adr_spalte||')'; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Statistik'', ''Anzahl dist Adress-Dokument-Kombinationen'', count(*), null, '''||str||''' -from ( -select '||dok_spalte||',upper('||adr_spalte||') -from '||basis_tab||' group by '||dok_spalte||',upper('||adr_spalte||') -) xyz'; -commit; - -str:='select '||dok_spalte||',upper('||adr_spalte||') from '||basis_tab||' -where ('||dok_spalte||',upper('||adr_spalte||')) in ( -select '||dok_spalte||',upper('||adr_spalte||' from '||tab_addr_inst_sec_s||') -group by '||dok_spalte||',upper('||adr_spalte||')'; - -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Statistik'', ''Anzahl dist Adress-Dokument-Kombinationen, zugeordnet'', count(*), null, '''||str||''' -from ( -select '||dok_spalte||',upper('||adr_spalte||') from '||basis_tab||' -where ('||dok_spalte||',upper('||adr_spalte||')) in (select '||dok_spalte||',upper('||adr_spalte||') from '||tab_addr_inst_sec_s||') -group by '||dok_spalte||',upper('||adr_spalte||') -) xyz'; -commit; - -EXECUTE 'insert into '||ergebnis_tab_name||' -select ''Statistik'', ''Anteil (in %) zugeordnete Adress-Dokument-Kombinationen'', -round((100*(select ergebnis from '||ergebnis_tab_name||' -where beschreibung=''Anzahl dist Adress-Dokument-Kombinationen, zugeordnet'') -/(select ergebnis from '||ergebnis_tab_name||' -where beschreibung=''Anzahl dist Adress-Dokument-Kombinationen'')),2), null, null'; -commit; - -raise notice 'start 10 year slots....'; - ---- 10-Jahres-Zeiträume: ---- 2006-2015 - -for py_counter in 1986..date_part('year', now()) by 10 loop - -endyear := py_counter + 9; - -str:='select '||dok_spalte||',upper('||adr_spalte||') from '||basis_tab||' -where '||py_spalte||'<='||endyear::varchar||' -and '||py_spalte||'>='||py_counter::varchar||' -group by '||dok_spalte||',upper('||adr_spalte||')'; - -raise notice '%s', str; - -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Statistik'', -''Anzahl dist Adress-Dokument-Kombinationen '||py_counter::varchar||'-'||endyear::varchar||''', -count(*), null, '''||str||''' -from (select '||dok_spalte||',upper('||adr_spalte||') from '||basis_tab||' -where '||py_spalte||'<='||endyear::varchar||' and '||py_spalte||'>='||py_counter::varchar||' -group by '||dok_spalte||',upper('||adr_spalte||')) x'; - -commit; - -str:='select '||dok_spalte||',upper('||adr_spalte||') from '||basis_tab||' -where ('||dok_spalte||',upper('||adr_spalte||')) in (select '||dok_spalte||',upper('||adr_spalte||' -from '||tab_addr_inst_sec_s||') -and '||py_spalte||'<='||endyear::varchar||' and '||py_spalte||'>='||py_counter::varchar||' -group by '||dok_spalte||',upper('||adr_spalte||')'; - -raise notice '%s', str; - -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Statistik'', ''Anzahl dist Adress-Dokument-Kombinationen, zugeordnet '||py_counter::varchar||'-'||endyear::varchar||''', count(*), null, '''||str||''' -from (select '||dok_spalte||',upper('||adr_spalte||') from '||basis_tab||' -where ('||dok_spalte||',upper('||adr_spalte||')) in (select '||dok_spalte||',upper('||adr_spalte||') -from '||tab_addr_inst_sec_s||') -and '||py_spalte||'<='||endyear::varchar||' and '||py_spalte||'>='||py_counter::varchar||' -group by '||dok_spalte||',upper('||adr_spalte||')) xyz'; - -commit; - -EXECUTE format('select ergebnis from %s -where beschreibung=''Anzahl dist Adress-Dokument-Kombinationen '||py_counter::varchar||'-'||endyear::varchar||''' -', ergebnis_tab_name) -INTO cnt_total; - -if (cnt_total > 0) -then EXECUTE 'insert into '||ergebnis_tab_name||' -select ''Statistik'', ''Anteil (in %) zugeordnete Adress-Dokument-Kombinationen '||py_counter::varchar||'-'||endyear::varchar||''', -round((100*(select ergebnis from '||ergebnis_tab_name||' -where beschreibung=''Anzahl dist Adress-Dokument-Kombinationen, zugeordnet '||py_counter::varchar||'-'||endyear::varchar||''') -/(select ergebnis from '||ergebnis_tab_name||' -where beschreibung=''Anzahl dist Adress-Dokument-Kombinationen '||py_counter::varchar||'-'||endyear::varchar||''')),2), null, null -'; -end if; -commit; - -end loop; - -/* Dokumente mit mindestens einer zugeordneten Adresse */ - -str:='select '||dok_spalte||' from '||basis_tab||' group by '||dok_spalte; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Statistik'', ''Anzahl dist Dokumente'', count(*), null, '''||str||''' -from (select '||dok_spalte||' from '||basis_tab||' group by '||dok_spalte||') x '; - -commit; - -str:='select '||dok_spalte||' from '||basis_tab||' -where '||dok_spalte||' in (select '||dok_spalte||' from '||tab_addr_inst_sec_s||') -group by '||dok_spalte; -EXECUTE 'insert into '||ergebnis_tab_name||' select ''Statistik'', ''Anzahl dist Dokumente mit mind einer Zuordnung'', count(*), null, '''||str||''' -from (select '||dok_spalte||' from '||basis_tab||' -where '||dok_spalte||' in (select '||dok_spalte||' from '||tab_addr_inst_sec_s||') -group by '||dok_spalte||') y '; - -commit; - -EXECUTE 'insert into '||ergebnis_tab_name||' -select ''Statistik'', ''Anteil (in %) Dokumente mit mind einer Zuordnung'',round((100*(select ergebnis from '||ergebnis_tab_name||' -where beschreibung=''Anzahl dist Dokumente mit mind einer Zuordnung'') -/(select ergebnis from '||ergebnis_tab_name||' where beschreibung=''Anzahl dist Dokumente'')),2), null, null'; - -commit; - - END; -$procedure$ -; diff --git a/Procedures/create_download_pg_varchar__varchar__varchar__varchar__varchar__varchar__int8__bool_.txt b/Procedures/create_download_pg.sql similarity index 100% rename from Procedures/create_download_pg_varchar__varchar__varchar__varchar__varchar__varchar__int8__bool_.txt rename to Procedures/create_download_pg.sql diff --git a/Procedures/create_kb_inst_trans_pg.txt b/Procedures/create_kb_inst_trans_pg.sql similarity index 100% rename from Procedures/create_kb_inst_trans_pg.txt rename to Procedures/create_kb_inst_trans_pg.sql diff --git a/Procedures/create_kb_tables_pg_text__text__text_.txt b/Procedures/create_kb_tables_pg.sql similarity index 100% rename from Procedures/create_kb_tables_pg_text__text__text_.txt rename to Procedures/create_kb_tables_pg.sql diff --git a/Procedures/exclude_ii_pg.txt b/Procedures/exclude_ii_pg.sql similarity index 100% rename from Procedures/exclude_ii_pg.txt rename to Procedures/exclude_ii_pg.sql diff --git a/Procedures/get_hi_tree_for_uid_pg_numeric__date__text_.txt b/Procedures/get_hi_tree_for_uid_pg.sql similarity index 100% rename from Procedures/get_hi_tree_for_uid_pg_numeric__date__text_.txt rename to Procedures/get_hi_tree_for_uid_pg.sql diff --git a/Procedures/get_unassigned_pg.txt b/Procedures/get_unassigned_pg.sql similarity index 100% rename from Procedures/get_unassigned_pg.txt rename to Procedures/get_unassigned_pg.sql diff --git a/Procedures/modus_a_connect_pg_text__text_.txt b/Procedures/modus_a_connect_pg.sql similarity index 100% rename from Procedures/modus_a_connect_pg_text__text_.txt rename to Procedures/modus_a_connect_pg.sql diff --git a/Procedures/modus_s_holger_pg__.txt b/Procedures/modus_s_holger_pg.sql similarity index 100% rename from Procedures/modus_s_holger_pg__.txt rename to Procedures/modus_s_holger_pg.sql diff --git a/Procedures/pattern_matching_b_ii_pg_text__text__text_.txt b/Procedures/pattern_matching_b_ii_pg.sql similarity index 100% rename from Procedures/pattern_matching_b_ii_pg_text__text__text_.txt rename to Procedures/pattern_matching_b_ii_pg.sql diff --git a/Procedures/pattern_matching_b_iii_pg_varchar__varchar__varchar_.txt b/Procedures/pattern_matching_b_iii_pg.sql similarity index 100% rename from Procedures/pattern_matching_b_iii_pg_varchar__varchar__varchar_.txt rename to Procedures/pattern_matching_b_iii_pg.sql diff --git a/Procedures/pattern_matching_d_pg_text__text__text__text_.txt b/Procedures/pattern_matching_d_pg.sql similarity index 100% rename from Procedures/pattern_matching_d_pg_text__text__text__text_.txt rename to Procedures/pattern_matching_d_pg.sql diff --git a/Procedures/run_icode_iv_pg_varchar__varchar__varchar__varchar_.txt b/Procedures/run_icode_iv_pg.sql similarity index 100% rename from Procedures/run_icode_iv_pg_varchar__varchar__varchar__varchar_.txt rename to Procedures/run_icode_iv_pg.sql diff --git a/Procedures/wostransfo_proc_pg_text__int8_.txt b/Procedures/wostransfo_proc_pg.sql similarity index 100% rename from Procedures/wostransfo_proc_pg_text__int8_.txt rename to Procedures/wostransfo_proc_pg.sql diff --git a/README.md b/README.md deleted file mode 100644 index b1e6dcd..0000000 --- a/README.md +++ /dev/null @@ -1,93 +0,0 @@ -# Institutional Coding - - - -## Getting started - -To make it easy for you to get started with GitLab, here's a list of recommended next steps. - -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! - -## Add your files - -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: - -``` -cd existing_repo -git remote add origin https://gitlab.ub.uni-bielefeld.de/ag-bibliometrie/institutional-coding.git -git branch -M main -git push -uf origin main -``` - -## Integrate with your tools - -- [ ] [Set up project integrations](https://gitlab.ub.uni-bielefeld.de/ag-bibliometrie/institutional-coding/-/settings/integrations) - -## Collaborate with your team - -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) - -## Test and Deploy - -Use the built-in continuous integration in GitLab. - -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) - -*** - -# Editing this README - -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template. - -## Suggestions for a good README - -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. - -## Name -Choose a self-explaining name for your project. - -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. - -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. - -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. - -## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. - -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. - -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. - -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. - -## Contributing -State if you are open to contributions and what your requirements are for accepting them. - -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. - -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. - -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. - -## License -For open source projects, say how it is licensed. - -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. -- GitLab