NAME

PONAPI::Constants - Constants used by PONAPI::DAO and PONAPI repositories

VERSION

version 0.002002

SYNOPSIS

use PONAPI::Constants;
sub update {
    ...

    return $updated_more_rows_than_requested
           ? PONAPI_UPDATED_EXTENDED
           : PONAPI_UPDATED_NORMAL;
}

EXPORTS

PONAPI_UPDATED_NORMAL

The update-like operation did as requested, as no more.

PONAPI_UPDATED_EXTENDED

The update-like operation did more than requested; maybe it added rows, or updated another related table.

PONAPI_UPDATED_NOTHING

The update-like operation was a no-op. This can happen in a SQL implementation when modifying a resource that doesn't exist, for example.

AUTHORS

  • Mickey Nasriachi <mickey@cpan.org>

  • Stevan Little <stevan@cpan.org>

  • Brian Fraser <hugmeir@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Mickey Nasriachi, Stevan Little, Brian Fraser.

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