| 1 | package Data::Model::Schema::Inflate::UUID; | ||
| 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 | 1 | ▶ | use Data::Model::Schema::Inflate; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Data::UUID; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | our $GEN = Data::UUID->new;; | |
| 8 | |||
| 9 | inflate_type UUID => { | ||
| 10 | 1 | ▶ | inflate => sub { $GEN->to_string( $_[0] ) }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | deflate => sub { $GEN->from_string( $_[0] ) }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 12 | 1 | }; | |
| 13 | |||
| 14 | 1 | 1; | |
| 15 | |||