| 1 | =head1 NAME | ||
| 2 | |||
| 3 | DynGig::Automata::EZDB::Alert - Extends DynGig::Util::EZDB. | ||
| 4 | |||
| 5 | =cut | ||
| 6 | package DynGig::Automata::EZDB::Alert; | ||
| 7 | |||
| 8 | 1 | ▶ | use base DynGig::Util::EZDB; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | =head1 SCHEMA | ||
| 14 | |||
| 15 | key TEXT NOT NULL, | ||
| 16 | value BLOB, | ||
| 17 | PRIMARY KEY ( key ) | ||
| 18 | |||
| 19 | =cut | ||
| 20 | sub new | ||
| 21 | 0 | ▶ | { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 22 | 0 | DynGig::Util::EZDB->schema | |
| 23 | ( | ||
| 24 | key => 'TEXT NOT NULL PRIMARY KEY', | ||
| 25 | value => 'BLOB', | ||
| 26 | ); | ||
| 27 | |||
| 28 | 0 | bless DynGig::Util::EZDB::new( @_ ), __PACKAGE__; | |
| 29 | } | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | See B<Util::DynGig::Automata::SQLite> for other methods. | ||
| 34 | |||
| 35 | $db->delete( 'key1' ); ## delete record of 'key1' from all tables | ||
| 36 | |||
| 37 | =cut | ||
| 38 | sub delete ## delete a key from all tables | ||
| 39 | 0 | ▶ | { |
|
Subroutine
delete: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 40 | 0 | my ( $this, $key ) = @_; | |
| 41 | 0 | map { my $r = $this->_execute( $_, 'delete_key', $key ) } $this->table(); | |
| 42 | } | ||
| 43 | |||
| 44 | =head1 NOTE | ||
| 45 | |||
| 46 | See DynGig::Automata | ||
| 47 | |||
| 48 | =cut | ||
| 49 | |||
| 50 | 1 | 1; | |
| 51 | |||
| 52 | __END__ | ||