| 1 | package Mojolicious::DBIxCustom; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | ▶ | use DBIx::Custom -base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 0 | ▶ | sub last_id{ |
|
Subroutine
last_id: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 8 | 0 | shift->select("LAST_INSERT_ID()")->value; | |
| 9 | } | ||
| 10 | |||
| 11 | 0 | ▶ | sub count{ |
|
Subroutine
count: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 12 | shift->select(@_, | ||
| 13 | 0 | ▶ | after_build_sql => sub{ |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 14 | 0 | "select count(*) from ($_[0]) as t" | |
| 15 | 0 | })->value; | |
| 16 | } | ||
| 17 | |||
| 18 | 1 | 1; | |