| 1 | package SQL::Wizard::Expr::CTE; | ||
| 2 | |||
| 3 | 14 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 14 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 14 | ▶ | use parent 'SQL::Wizard::Expr'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 14 | ▶ | use SQL::Wizard::Expr::Select; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 4 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 9 | 4 | my ($class, %args) = @_; | |
| 10 | # args: | ||
| 11 | # ctes => [ { name => 'recent', query => $select }, ... ] | ||
| 12 | # recursive => 0|1 | ||
| 13 | 4 | $class->SUPER::new(%args); | |
| 14 | } | ||
| 15 | |||
| 16 | # Chain the main SELECT after WITH | ||
| 17 | 4 | ▶ | sub select { |
|
Subroutine
select: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | 4 | my ($self, %args) = @_; | |
| 19 | 4 | SQL::Wizard::Expr::Select->from_args(%args, _cte => $self, _renderer => $self->{_renderer}); | |
| 20 | } | ||
| 21 | |||
| 22 | 14 | 1; | |