docs.ObjectRefCyclic_EntityList - V
type: V ( view ), modify_date: 2022-09-08 16:28:45
RepoObject_guid: 84E72F09-C5FD-EB11-850F-A81E8446D5B0
Columns
PK | Column Name | Data Type | NULL? | ID |
---|---|---|---|---|
|
|
|||
|
|
|||
|
|
|||
|
|
Indexes
idx_ObjectRefCyclic_EntityList__1
-
IndexSemanticGroup: no_group
-
[column-cultures_name]; nvarchar(10)
-
-
PK, Unique, Real: 0, 0, 0
sql_modules_definition
docs.ObjectRefCyclic_EntityList - V script
CREATE View docs.ObjectRefCyclic_EntityList
As
Select
rop.cultures_name
, PumlEntityList =
--
String_Agg ( Cast(rop.RepoObject_Puml As NVarchar(Max)), Char ( 13 ) + Char ( 10 )) Within Group(Order By
ro.ro_fullname2)
, PumlEntityOnlyPkList =
--
String_Agg ( Cast(rop.RepoObject_PumlOnlyPK As NVarchar(Max)), Char ( 13 ) + Char ( 10 )) Within Group(Order By
ro.ro_fullname2)
, XrefEntityList =
--
String_Agg (
Concat (
--* xref:sqldb:target-page-filename.adoc[link text]
--we need to convert to first argument nvarchar(max) to avoid the limit of 8000 byte
Cast('* xref:sqldb:' As NVarchar(Max))
, docs.fs_cleanStringForFilename ( ro.ro_fullname2 )
, '.adoc[]'
)
, Char ( 13 ) + Char ( 10 )
) Within Group(Order By
ro.ro_fullname2)
From
docs.RepoObject_Plantuml_Entity_T As rop
Inner Join
(
Select
ro_guid = Referenced_guid
, ro_fullname2 = Referenced_fullname2
From
reference.ReferenceTree_cyclic_union
Union
Select
Referencing_guid
, Referencing_fullname2
From
reference.ReferenceTree_cyclic_union
) As ro
On
ro.ro_guid = rop.RepoObject_guid
Group By
rop.cultures_name
sql