The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Class::DBI::Plugin::DigestColumns - easy to digest the digest

SYNOPSIS

    package Your::Data;
    use base qw(Class::DBI);
    use Class::DBI::Plugin::DigestColumns;
    __PACKAGE__->digest_columns('digest');
    __PACKAGE__->digest_key('IYAN');

DESCRIPTION

Class::DBI::Plugin::DigestColumn is easy to digest the plugin for CDBI.

METHODS

init

Initialization phase. This is private method.

digest

Get the digest.

digest_columns

    __PACKAGE__->digest_columns('digest');

This method adds the trigger, the column digest in update and create.

digest_key

This method is generated by mk_classdata. If you set the digest_key, digest value is generated by keyword + digest_key.

AUTHOR

MATSUNO Tokuhiro <tokuhiro at mobilefactory.jp>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Class::DBI, Class::DBI::Plugin, Digest::SHA1