Exported comments on views

This commit is contained in:
Jan Kvetina 2022-07-04 07:07:11 +02:00
parent 5ba4c0299e
commit baad469e1f
34 changed files with 80 additions and 25 deletions

View File

@ -27,20 +27,20 @@ START WITH l.log_id = x.log_id
AND l.app_id IN (x.app_id, 0)
ORDER SIBLINGS BY l.log_id;
--
COMMENT ON TABLE logs_tree IS '[CORE - DASHBOARD] All messages related to selected tree id (`app.get_log_tree_id()`)';
COMMENT ON TABLE logs_tree IS '[CORE - DASHBOARD] All messages related to selected tree id (`app.get_log_tree_id()`)';
--
COMMENT ON COLUMN logs_tree.log_id IS 'Log ID generated from `LOG_ID` sequence';
COMMENT ON COLUMN logs_tree.log_parent IS 'Parent log record; dont use FK to avoid deadlocks';
COMMENT ON COLUMN logs_tree.app_id IS 'APEX Application ID';
COMMENT ON COLUMN logs_tree.page_id IS 'APEX Application PAGE ID';
COMMENT ON COLUMN logs_tree.user_id IS 'User ID';
COMMENT ON COLUMN logs_tree.flag IS 'Type of error listed in `tree` package specification; FK missing for performance reasons';
COMMENT ON COLUMN logs_tree.action_name IS 'Action name to distinguish position in module or use it as warning/error names';
COMMENT ON COLUMN logs_tree.module_name IS 'Module name (procedure or function name)';
COMMENT ON COLUMN logs_tree.module_line IS 'Line in the module';
COMMENT ON COLUMN logs_tree.module_timer IS 'Timer for current row in seconds';
COMMENT ON COLUMN logs_tree.arguments IS 'Arguments passed to module';
COMMENT ON COLUMN logs_tree.payload IS 'Formatted call stack, error stack or query with DML error';
COMMENT ON COLUMN logs_tree.session_id IS 'Session id from `sessions` table';
COMMENT ON COLUMN logs_tree.created_at IS 'Timestamp of creation';
COMMENT ON COLUMN logs_tree.log_id IS 'Log ID generated from `LOG_ID` sequence';
COMMENT ON COLUMN logs_tree.log_parent IS 'Parent log record; dont use FK to avoid deadlocks';
COMMENT ON COLUMN logs_tree.app_id IS 'APEX Application ID';
COMMENT ON COLUMN logs_tree.page_id IS 'APEX Application PAGE ID';
COMMENT ON COLUMN logs_tree.user_id IS 'User ID';
COMMENT ON COLUMN logs_tree.flag IS 'Type of error listed in `tree` package specification; FK missing for performance reasons';
COMMENT ON COLUMN logs_tree.action_name IS 'Action name to distinguish position in module or use it as warning/error names';
COMMENT ON COLUMN logs_tree.module_name IS 'Module name (procedure or function name)';
COMMENT ON COLUMN logs_tree.module_line IS 'Line in the module';
COMMENT ON COLUMN logs_tree.module_timer IS 'Timer for current row in seconds';
COMMENT ON COLUMN logs_tree.arguments IS 'Arguments passed to module';
COMMENT ON COLUMN logs_tree.payload IS 'Formatted call stack, error stack or query with DML error';
COMMENT ON COLUMN logs_tree.session_id IS 'Session id from `sessions` table';
COMMENT ON COLUMN logs_tree.created_at IS 'Timestamp of creation';

View File

@ -5,4 +5,6 @@ SELECT
FROM apex_applications a
WHERE a.owner NOT LIKE 'APEX%'
GROUP BY a.owner;
--
COMMENT ON TABLE lov_app_schemas IS '';

View File

@ -81,7 +81,7 @@ SELECT -- invalid objects
FROM user_objects o
WHERE o.status != 'VALID';
--
COMMENT ON TABLE nav_badges IS '[CORE - DASHBOARD] View with current badges in top menu';
COMMENT ON TABLE nav_badges IS '[CORE - DASHBOARD] View with current badges in top menu';
--
COMMENT ON COLUMN nav_badges.page_id IS 'Page ID with badge';
COMMENT ON COLUMN nav_badges.page_alias IS 'Page alias when page has no ID and need badge';

View File

@ -149,10 +149,8 @@ LEFT JOIN nav_overview_mvw t
ON t.app_id = n.app_id
AND t.page_id = n.parent_id;
--
COMMENT ON TABLE nav_overview IS '[CORE - DASHBOARD] Enriched navigation overview used also for menu rendering';
COMMENT ON TABLE nav_overview IS '[CORE - DASHBOARD] Enriched navigation overview used also for menu rendering';
--
COMMENT ON COLUMN nav_overview.action IS 'Action icon (add/remove page)';
COMMENT ON COLUMN nav_overview.action_url IS 'Action url target to use icon as link';
COMMENT ON COLUMN nav_overview.app_id IS 'Application id';
COMMENT ON COLUMN nav_overview.page_id IS 'Page id';
COMMENT ON COLUMN nav_overview.parent_id IS 'Parent page id to build a hierarchy, adjustable by the user/admin';
@ -161,8 +159,8 @@ COMMENT ON COLUMN nav_overview.page_group IS 'Page group from APEX page sp
COMMENT ON COLUMN nav_overview.page_alias IS 'Page alis from APEX page specification';
COMMENT ON COLUMN nav_overview.page_name IS 'Page name from APEX page specification';
COMMENT ON COLUMN nav_overview.page_title IS 'Page title from APEX page specification';
COMMENT ON COLUMN nav_overview.page_template IS 'Type of template used on page';
COMMENT ON COLUMN nav_overview.css_class IS 'CSS class from APEX page specification';
COMMENT ON COLUMN nav_overview.page_template IS 'Type of template used on page';
COMMENT ON COLUMN nav_overview.is_hidden IS 'Flag for hiding item in menu; Y = hide, NULL = show';
COMMENT ON COLUMN nav_overview.is_reset IS 'Flag for reset/clear page items; Y = clear, NULL = keep;';
COMMENT ON COLUMN nav_overview.is_shared IS 'Flag for sharing record with other apps';
@ -170,6 +168,8 @@ COMMENT ON COLUMN nav_overview.is_modal IS 'Flag for modal dialogs';
COMMENT ON COLUMN nav_overview.is_javascript IS 'Flag for JavaScript as the target';
COMMENT ON COLUMN nav_overview.auth_scheme IS 'Auth scheme from APEX page specification';
COMMENT ON COLUMN nav_overview.page_url IS 'Page url to use as redirection target';
COMMENT ON COLUMN nav_overview.allow_changes IS 'APEX column to allow edit/delete only some rows';
COMMENT ON COLUMN nav_overview.sort_order IS 'Calculated path to show rows in correct order';
COMMENT ON COLUMN nav_overview.allow_changes IS 'APEX column to allow edit/delete only some rows';
COMMENT ON COLUMN nav_overview.action IS 'Action icon (add/remove page)';
COMMENT ON COLUMN nav_overview.action_url IS 'Action url target to use icon as link';

View File

@ -37,4 +37,6 @@ JOIN x
--
AND (a.package_name LIKE x.search_packages || '%' ESCAPE '\' OR x.search_packages IS NULL)
AND (a.object_name LIKE x.search_modules || '%' ESCAPE '\' OR x.search_modules IS NULL);
--
COMMENT ON TABLE obj_arguments IS '';

View File

@ -99,4 +99,6 @@ WHERE 1 = 1
AND (c.is_found_column = 'Y' OR x.search_columns IS NULL)
AND (c.is_found_data_type = 'Y' OR x.search_data_type IS NULL)
AND (c.is_found_size = 'Y' OR x.search_size IS NULL);
--
COMMENT ON TABLE obj_columns IS '';

View File

@ -95,4 +95,6 @@ FROM c
LEFT JOIN p
ON p.table_name = c.table_name
AND p.constraint_name = c.constraint_name;
--
COMMENT ON TABLE obj_constraints IS '';

View File

@ -61,4 +61,6 @@ WHERE b.data_type != s.data_type
x.table_name IN (b.table_name, s.table_name)
OR x.table_name IS NULL
);
--
COMMENT ON TABLE obj_constraints_fix_dt1 IS '';

View File

@ -91,4 +91,6 @@ JOIN s
ON s.column_name = r.column_name
AND s.data_type != r.data_type
GROUP BY x.table_name, r.column_name, r.data_type, s.data_type;
--
COMMENT ON TABLE obj_constraints_fix_dt2 IS '';

View File

@ -43,4 +43,6 @@ JOIN c
AND c.table_name = i.table_name
AND c.index_name = i.index_name
WHERE i.generated = 'N';
--
COMMENT ON TABLE obj_indexes IS '';

View File

@ -46,4 +46,6 @@ LEFT JOIN (
ON i.table_name = f.table_name
AND i.cols LIKE f.cols || '%'
WHERE i.index_name IS NULL;
--
COMMENT ON TABLE obj_indexes_missing IS '';

View File

@ -99,12 +99,12 @@ WHERE (
)
);
--
COMMENT ON TABLE obj_modules IS 'Find package modules (procedures and functions) and their boundaries (start-end lines)';
COMMENT ON TABLE obj_modules IS 'Find package modules (procedures and functions) and their boundaries (start-end lines)';
--
COMMENT ON COLUMN obj_modules.package_name IS 'Package name';
COMMENT ON COLUMN obj_modules.module_name IS 'Module name';
COMMENT ON COLUMN obj_modules.group_name IS 'Group name to have similar modules grouped together';
COMMENT ON COLUMN obj_modules.overload IS 'Overload ID';
COMMENT ON COLUMN obj_modules.group_name IS 'Group name to have similar modules grouped together';
COMMENT ON COLUMN obj_modules.is_function IS 'Module type (function)';
COMMENT ON COLUMN obj_modules.is_private IS 'Flag for private procedures';
COMMENT ON COLUMN obj_modules.is_autonomous IS 'Contains autonomous transaction';

View File

@ -8,4 +8,6 @@ FROM all_objects o
WHERE o.owner = app.get_owner()
AND o.object_type NOT IN ('PACKAGE BODY', 'TABLE PARTITION')
GROUP BY o.object_type;
--
COMMENT ON TABLE obj_overview IS '';

View File

@ -54,4 +54,6 @@ SELECT
FROM p
JOIN r
ON r.partition_name = p.partition_name;
--
COMMENT ON TABLE obj_partitions IS '';

View File

@ -51,4 +51,6 @@ JOIN x
ON x.owner = s.sequence_owner
LEFT JOIN m
ON m.sequence_name = s.sequence_name;
--
COMMENT ON TABLE obj_sequences IS '';

View File

@ -169,4 +169,6 @@ WHERE t.table_name = NVL(x.table_name, t.table_name)
AND (c.is_found_column = 'Y' OR x.search_columns IS NULL)
AND (c.is_found_data_type = 'Y' OR x.search_data_type IS NULL)
AND (c.is_found_size = 'Y' OR x.search_size IS NULL);
--
COMMENT ON TABLE obj_tables IS '';

View File

@ -39,4 +39,6 @@ SELECT
FROM t
CONNECT BY NOCYCLE t.referenced_table = PRIOR t.table_name
START WITH t.referenced_table = (SELECT x.table_name FROM x);
--
COMMENT ON TABLE obj_tables_ref_down IS '';

View File

@ -16,4 +16,6 @@ JOIN x
ON x.owner = d.referenced_owner
AND x.table_name = d.referenced_name
GROUP BY d.name;
--
COMMENT ON TABLE obj_tables_ref_objects IS '';

View File

@ -39,4 +39,6 @@ WHERE r.query_type_code = 'TABLE'
AND d.referenced_type = 'TABLE'
)
);
--
COMMENT ON TABLE obj_tables_ref_pages IS '';

View File

@ -40,4 +40,6 @@ SELECT
FROM t
CONNECT BY NOCYCLE PRIOR t.referenced_table = t.table_name
START WITH t.table_name = (SELECT x.table_name FROM x);
--
COMMENT ON TABLE obj_tables_ref_up IS '';

View File

@ -84,4 +84,6 @@ LEFT JOIN all_tab_comments c
WHERE t.table_name = NVL(x.table_name, t.table_name)
AND t.table_name != app.get_dml_table(t.table_name)
AND v.mview_name IS NULL;
--
COMMENT ON TABLE obj_triggers IS '';

View File

@ -69,4 +69,6 @@ WHERE 1 = 1
AND (c.is_found_column = 'Y' OR x.search_columns IS NULL)
--AND (c.is_found_data_type = 'Y' OR x.search_data_type IS NULL)
--AND (c.is_found_size = 'Y' OR x.search_size IS NULL);
--
COMMENT ON TABLE obj_view_columns IS '';

View File

@ -140,4 +140,6 @@ LEFT JOIN all_tab_comments c
--
WHERE (c.is_found_column = 'Y' OR x.search_columns IS NULL)
AND (s.is_found_text = 'Y' OR x.search_source IS NULL);
--
COMMENT ON TABLE obj_views IS '';

View File

@ -32,5 +32,5 @@ LEFT JOIN apex_application_items a
ON a.application_id = t.app_id
AND a.item_name = t.item_name;
--
COMMENT ON TABLE translated_items_overview IS '[CORE - DASHBOARD] Use page/app items to translate application';
COMMENT ON TABLE translated_items_overview IS '[CORE - DASHBOARD] Use page/app items to translate application';

View File

@ -17,5 +17,5 @@ FROM translated_messages t
JOIN x
ON x.app_id = t.app_id;
--
COMMENT ON TABLE translated_messages_overview IS '[CORE - DASHBOARD] Translate messages/notifications';
COMMENT ON TABLE translated_messages_overview IS '[CORE - DASHBOARD] Translate messages/notifications';

View File

@ -14,4 +14,6 @@ FROM translated_items t
JOIN x
ON x.app_id = t.app_id
AND (x.page_id = t.page_id OR t.page_id = 0);
--
COMMENT ON TABLE translations_current IS '';

View File

@ -153,4 +153,6 @@ FROM (
WHERE c.page_id NOT IN (0, 9999, 947)
GROUP BY x.chart_item_like, c.page_id, c.series_name
) t;
--
COMMENT ON TABLE translations_extracts IS '';

View File

@ -39,4 +39,6 @@ WHERE r.page_id > 0
AND NVL(r.static_id, p.static_id) IS NOT NULL
AND r.region_name NOT LIKE '%&' || REPLACE(x.region_name, '#', r.page_id) || COALESCE(r.static_id, p.static_id, ' ?') || '.%'
AND r.region_name NOT LIKE '&%.';
--
COMMENT ON TABLE translations_headers IS '';

View File

@ -57,4 +57,6 @@ JOIN t
AND t.item_name = i.item_name
WHERE i.page_id != t.page_id --= 0
AND i.item_name NOT IN ('PAGE_NAME');
--
COMMENT ON TABLE translations_new IS '';

View File

@ -39,4 +39,6 @@ LEFT JOIN apex_application_page_items p
AND p.item_name = t.item_name
WHERE a.item_name IS NULL
AND p.item_name IS NULL;
--
COMMENT ON TABLE translations_slipped IS '';

View File

@ -19,4 +19,6 @@ LEFT JOIN translations_extracts d
WHERE t.app_id = x.app_id
AND t.page_id = NVL(x.page_id, t.page_id)
AND d.item_name IS NULL;
--
COMMENT ON TABLE translations_unused IS '';

View File

@ -42,4 +42,6 @@ JOIN x
WHERE m.message_type = 'CHAT'
ORDER BY m.created_at DESC
FETCH FIRST 20 ROWS ONLY;
--
COMMENT ON TABLE user_messages_chat IS '';

View File

@ -15,4 +15,6 @@ SELECT
FROM user_messages m
WHERE m.message_type = 'CHAT'
GROUP BY m.app_id, m.user_id, m.session_id;
--
COMMENT ON TABLE user_messages_chats IS '';

View File

@ -95,3 +95,4 @@ WHERE u.user_id = NVL(x.filter_user_id, u.user_id)
);
--
COMMENT ON TABLE users_overview IS '[CORE - DASHBOARD] Users';