lib/DBIx/ActiveRecord/Arel/Query/Delete.pm

filter: Statementstmt 100% 21 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 93.1% 27 / 29 CC 2 SCAR 2.9
CC
2
Cov
96%
_to_sql
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« lib/DBIx/ActiveRecord/Arel/Join.pm ↑ Summary lib/DBIx/ActiveRecord/Arel/Query/Insert.pm »
1 package DBIx::ActiveRecord::Arel::Query::Delete;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use base 'DBIx::ActiveRecord::Arel::Query';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
7 1 my ($self, $main) = @_;
8 1 my $o = $self->SUPER::new($main);
9 1 $o->merge($main->query);
10 1 $o;
11 }
12  
13 1 ▶sub _to_sql {
Subroutine _to_sql: called CC=2 SCAR=7.0
14 1 my ($self) = @_;
15  
16 1 $DBIx::ActiveRecord::Arel::Column::USE_FULL_NAME = 0;
17 1 $DBIx::ActiveRecord::Arel::Column::AS = {};
18  
19 1 my $sql = 'DELETE FROM '.$self->main->table;
20 1 my $where = $self->build_where;
21 1 ▶ $sql .= " WHERE $where" if $where;
Branch: 1 branch
BranchTrueFalseTotal
if $where 1 0 1
22 1 $sql;
23 }
24  
25 2 1;
« lib/DBIx/ActiveRecord/Arel/Join.pm ↑ Summary lib/DBIx/ActiveRecord/Arel/Query/Insert.pm »