| 1 | package DBIO::Async; | ||
| 2 | 4 | our $VERSION = '0.900007'; | |
| 3 | # ABSTRACT: Shared, loop-agnostic async layer for DBIO drivers | ||
| 4 | |||
| 5 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | # Why DBIO::Base (karr k13): it is core's meta-infrastructure base for internal | ||
| 9 | # DBIO classes -- c3 mro, DBIO::Componentised, Class::Accessor::Grouped, | ||
| 10 | # component_base_class 'DBIO' -- and the base every dist entry point in the | ||
| 11 | # family carries: DBIO::Forked (the sibling async-mode dist, likewise with no | ||
| 12 | # load_components of its own), DBIO::PostgreSQL, DBIO::MySQL, | ||
| 13 | # DBIO::PostgreSQL::EV, ::Age and ::PostGIS. It is NOT here for a | ||
| 14 | # load_components('Async'): this module has no behaviour to load and no such | ||
| 15 | # component is documented. It is here because it is the NEUTRAL base -- it | ||
| 16 | # inherits no driver component's connection() hook, so loading this dist | ||
| 17 | # decides no storage_type (the property ADR 0032 ยง7 exists to protect). @ISA is | ||
| 18 | # a composition seam: changing this needs its own ticket and an ADR, not a | ||
| 19 | # cleanup. t/00-load.t pins it. | ||
| 20 | 4 | ▶ | use base 'DBIO::Base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | # ADR 0030 refinement (core k65): future_io does NOT register a generic backend | ||
| 23 | # on the core base. The core resolver discovers the per-driver transport adapter | ||
| 24 | # by CONVENTION -- ref($storage) . '::Async' (e.g. DBIO::PostgreSQL::Storage -> | ||
| 25 | # DBIO::PostgreSQL::Storage::Async) -- so merely loading this module no longer | ||
| 26 | # globally claims future_io for every driver. This module just carries the | ||
| 27 | # shared abstract Future::IO backend (DBIO::Async::Storage) that each driver's | ||
| 28 | # ::Storage::Async adapter subclasses and completes. | ||
| 29 | |||
| 30 | |||
| 31 | 4 | 1; | |
| 32 | |||
| 33 | __END__ | ||