« blib/lib/DBIO/MySQL/Test/EventTZDeprecated.pm
↑ Summary
blib/lib/DBIO/MySQL/Storage/Async/Binary.pm »
| 1 | package DBIO::MySQL::Result; | ||||||||||
| 2 | # ABSTRACT: MySQL/MariaDB-specific Result component for DBIO | ||||||||||
| 3 | |||||||||||
| 4 | 13 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 13 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 13 | our $VERSION = '0.900007'; | |||||||||
| 8 | |||||||||||
| 9 | 13 | ▶ | use base 'DBIO::Core'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 13 | __PACKAGE__->mk_classdata('_mysql_indexes' => {}); | |||||||||
| 12 | 13 | __PACKAGE__->mk_classdata('_mysql_engine'); | |||||||||
| 13 | 13 | __PACKAGE__->mk_classdata('_mysql_charset'); | |||||||||
| 14 | 13 | __PACKAGE__->mk_classdata('_mysql_collate'); | |||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | |||||||||||
| 18 | 112 | ▶ | sub mysql_engine { | ||||||||
|
Subroutine
mysql_engine: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | 112 | my ($class, $v) = @_; | |||||||||
| 20 | 112 | ▶ | $class->_mysql_engine($v) if defined $v; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 112 | return $class->_mysql_engine; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | 110 | ▶ | sub mysql_charset { | ||||||||
|
Subroutine
mysql_charset: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||
| 26 | 110 | my ($class, $v) = @_; | |||||||||
| 27 | 110 | ▶ | $class->_mysql_charset($v) if defined $v; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | 110 | return $class->_mysql_charset; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | 110 | ▶ | sub mysql_collate { | ||||||||
|
Subroutine
mysql_collate: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||
| 33 | 110 | my ($class, $v) = @_; | |||||||||
| 34 | 110 | ▶ | $class->_mysql_collate($v) if defined $v; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 35 | 110 | return $class->_mysql_collate; | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | |||||||||||
| 39 | 30 | ▶ | sub mysql_index { | ||||||||
|
Subroutine
mysql_index: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 40 | 30 | my ($class, $name, $def) = @_; | |||||||||
| 41 | 30 | ▶ | if ($def) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 42 | 30 | my $indexes = { %{ $class->_mysql_indexes } }; | |||||||||
| 43 | 30 | $indexes->{$name} = $def; | |||||||||
| 44 | 30 | $class->_mysql_indexes($indexes); | |||||||||
| 45 | } | ||||||||||
| 46 | 30 | return $class->_mysql_indexes->{$name}; | |||||||||
| 47 | } | ||||||||||
| 48 | |||||||||||
| 49 | |||||||||||
| 50 | 111 | ▶ | sub mysql_indexes { | ||||||||
|
Subroutine
mysql_indexes: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 51 | 111 | my ($class) = @_; | |||||||||
| 52 | 111 | return { %{ $class->_mysql_indexes } }; | |||||||||
| 53 | } | ||||||||||
| 54 | |||||||||||
| 55 | |||||||||||
| 56 | 13 | 1; | |||||||||
| 57 | |||||||||||
| 58 | __END__ | ||||||||||