| 1 | package Genealogy::Obituary::Lookup::obituaries; | ||
| 2 | |||
| 3 | 15 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 15 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 15 | ▶ | use autodie qw(:all); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 15 | ▶ | use Database::Abstraction; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | Genealogy::Obituary::Lookup::obituaries - SQLite driver for the obituary database | ||
| 12 | |||
| 13 | =head1 VERSION | ||
| 14 | |||
| 15 | Version 0.21 | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | 15 | our $VERSION = '0.21'; | |
| 20 | |||
| 21 | 15 | our @ISA = ('Database::Abstraction'); | |
| 22 | |||
| 23 | =head1 SYNOPSIS | ||
| 24 | |||
| 25 | This module is not intended to be used directly. It is instantiated | ||
| 26 | internally by L<Genealogy::Obituary::Lookup> | ||
| 27 | as a driver to access the C<obituaries.sql> file. | ||
| 28 | |||
| 29 | use Genealogy::Obituary::Lookup; | ||
| 30 | my $obits = Genealogy::Obituary::Lookup->new(); | ||
| 31 | |||
| 32 | =head1 DESCRIPTION | ||
| 33 | |||
| 34 | A thin subclass of L<Database::Abstraction> that points at the F<obituaries.sql> | ||
| 35 | SQLite database shipped with the distribution. | ||
| 36 | All query logic - SQL generation, caching, row mapping - is inherited from the parent class. | ||
| 37 | |||
| 38 | The database schema is: | ||
| 39 | |||
| 40 | CREATE TABLE obituaries ( | ||
| 41 | first VARCHAR NOT NULL, | ||
| 42 | middle VARCHAR, | ||
| 43 | last VARCHAR NOT NULL, | ||
| 44 | maiden VARCHAR, | ||
| 45 | age INTEGER, | ||
| 46 | place VARCHAR, | ||
| 47 | newspaper VARCHAR NOT NULL, | ||
| 48 | date DATE NOT NULL, | ||
| 49 | source CHAR NOT NULL, -- 'M', 'F', or 'L' | ||
| 50 | page VARCHAR NOT NULL -- archive page number or direct URL | ||
| 51 | ); | ||
| 52 | |||
| 53 | =head1 LIMITATIONS | ||
| 54 | |||
| 55 | This class has no independent logic. All limitations apply at the | ||
| 56 | L<Genealogy::Obituary::Lookup> level. | ||
| 57 | |||
| 58 | =head1 AUTHOR | ||
| 59 | |||
| 60 | Nigel Horne, C<< <njh at nigelhorne.com> >> | ||
| 61 | |||
| 62 | =head1 LICENSE AND COPYRIGHT | ||
| 63 | |||
| 64 | Copyright 2020-2026 Nigel Horne. Released under GPL2. | ||
| 65 | |||
| 66 | =cut | ||
| 67 | |||
| 68 | 15 | 1; | |