console_information_schema_view
Column |
Type |
view_name |
TEXT |
column_name |
BLOB |
data_type |
BLOB |
info_schema_web_ui_path |
|
info_schema_link_abbrev_md |
|
info_schema_link_full_md |
|
content_web_ui_path |
|
content_web_ui_link_abbrev_md |
|
content_web_ui_link_full_md |
|
sql_ddl |
TEXT |
SQL DDL
CREATE VIEW console_information_schema_view AS
SELECT
vw.name AS view_name,
col.name AS column_name,
col.type AS data_type,
'/console/info-schema/view.sql?name=' || vw.name || '&stats=yes' as info_schema_web_ui_path,
'[Content](console/info-schema/view.sql?name=' || vw.name || '&stats=yes)' as info_schema_link_abbrev_md,
'[' || vw.name || ' (view) Schema](console/info-schema/view.sql?name=' || vw.name || '&stats=yes)' as info_schema_link_full_md,
'/console/content/view/' || vw.name || '.sql?stats=yes' as content_web_ui_path,
'[Content]($SITE_PREFIX_URL/console/content/view/' || vw.name || '.sql?stats=yes)' as content_web_ui_link_abbrev_md,
'[' || vw.name || ' (view) Content](console/content/view/' || vw.name || '.sql?stats=yes)' as content_web_ui_link_full_md,
vw.sql as sql_ddl
FROM sqlite_master vw
JOIN pragma_table_info(vw.name) col
WHERE vw.type = 'view' AND vw.name NOT LIKE 'sqlite_%'