| 1 | package DBIO::SQLite::Result; | ||||||||||
| 2 | # ABSTRACT: SQLite-specific Result component for DBIO | ||||||||||
| 3 | |||||||||||
| 4 | 9 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 9 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 9 | our $VERSION = '0.900007'; | |||||||||
| 8 | |||||||||||
| 9 | 9 | ▶ | use base 'DBIO::Base'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 9 | __PACKAGE__->mk_classdata('_sqlite_indexes' => {}); | |||||||||
| 12 | |||||||||||
| 13 | |||||||||||
| 14 | |||||||||||
| 15 | 36 | ▶ | sub sqlite_index { | ||||||||
|
Subroutine
sqlite_index: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 16 | 36 | my ($class, $name, $def) = @_; | |||||||||
| 17 | 36 | ▶ | if ($def) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 36 | my $indexes = { %{ $class->_sqlite_indexes } }; | |||||||||
| 19 | 36 | $indexes->{$name} = $def; | |||||||||
| 20 | 36 | $class->_sqlite_indexes($indexes); | |||||||||
| 21 | } | ||||||||||
| 22 | 36 | return $class->_sqlite_indexes->{$name}; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | |||||||||||
| 26 | 33 | ▶ | sub sqlite_indexes { | ||||||||
|
Subroutine
sqlite_indexes: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 27 | 33 | my ($class) = @_; | |||||||||
| 28 | 33 | return { %{ $class->_sqlite_indexes } }; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | 9 | 1; | |||||||||
| 33 | |||||||||||
| 34 | __END__ | ||||||||||