| 1 | package DBIO::Adapter::Base; | ||
| 2 | # ABSTRACT: per-driver base->native column type resolver (one-way) | ||
| 3 | |||
| 4 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 4 | our $VERSION = '0.900007'; | |
| 8 | |||
| 9 | 4 | ▶ | use Carp qw/croak/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 4 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | |||
| 13 | 3 | ▶ | sub new { my ($class, %args) = @_; bless { %args }, $class } |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 14 | |||
| 15 | |||
| 16 | # to_native(\%canonical_column) -> native DDL type string. Subclasses implement. | ||
| 17 | 1 | ▶ | sub to_native { croak ref($_[0]) . "::to_native not implemented" } |
|
Subroutine
to_native: called CC=1 SCAR=0.0
Pod
documented
| |||
| 18 | |||
| 19 | |||
| 20 | # capabilities -> hashref of engine traits the diff consults. | ||
| 21 | 1 | ▶ | sub capabilities { return { supports_alter_column_type => 1 } } |
|
Subroutine
capabilities: called CC=1 SCAR=0.0
Pod
documented
| |||
| 22 | |||
| 23 | 4 | 1; | |
| 24 | |||
| 25 | __END__ | ||