mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2024-11-24 08:42:27 +02:00
+ CTEs
This commit is contained in:
parent
89bdb9810a
commit
ab98d89416
@ -179,6 +179,35 @@
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
% if ( $node->can( 'ctes' ) ) {
|
||||
|
||||
% if ( $node->ctes ) {
|
||||
|
||||
% for my $cte ( @{ $node->ctes } ) {
|
||||
|
||||
<tr class="cte" data-level="<%= $level =%>">
|
||||
<td class="e<%= $cfg->{ ve } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="i<%= $cfg->{ vi } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="x<%= $cfg->{ vx } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="r<%= $cfg->{ vr } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="l<%= $cfg->{ vl } ? '' : ' tight' %>"><span> </span></td>
|
||||
<td class="n">
|
||||
<div class="n" style="margin-left:<%= $margin =%>px">
|
||||
<p><span>CTE <%= $cte %></span></p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
% for ( @{ $node->cte( $cte ) } ) {
|
||||
%== $block->( $_, $level + 1 );
|
||||
% }
|
||||
|
||||
% }
|
||||
|
||||
% }
|
||||
|
||||
% }
|
||||
|
||||
% if ( $node->initplans ) {
|
||||
|
||||
<tr class="ip" data-level="<%= $level =%>">
|
||||
|
Loading…
Reference in New Issue
Block a user