logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

RoPkg::Simba::Excludes

Author

       Subredu Manuel <diablo@iasi.roedu.net>

Bugs And Limitations

       None known to the author

Configuration And Environment

       This module does not use any configuration files or environment variables.

Dependencies

       RoPkg::DBCollection and RoPkg::Exceptions

Description

       RoPkg::Simba::Excludes is a class used to count and get the excludes from the database.

Diagnostics

       Unpack the source, and use 'make test' command

Incompatibilities

       None known to the author

Name

       RoPkg::Simba::Excludes

Perl Critic

       This module is perl critic level 2 compliant

See Also

       RoPkg::Simba RoPkg::Simba::Exclude SQL::Abstract

Subroutines/Methods

new()
       The class constructor. At this moment, it just calls RoPkg::DBObject->new() . Please read the
       RoPkg::DBObject manual page for more information about the new() parameters.

   Count($fields)
       Returns the number of excludes from database. The $fields parameter contains a list of WHERE clauses. For
       more details of $fields see SQL::Abstract.

   Get($fields,$orderby)
       Returns a array of RoPkg::Simba::excludelist objects. The excludes are read from the database.  The
       $fields parameter contains a list of WHERE clauses. For more details of $fields see SQL::Abstract.
       $orderby is a reference to a array holding the fields specification used for sorting the data.

Synopsis

        !#/usr/bin/perl

        use RoPkg::DB;
        use RoPkg::Simba::Excludes;

        sub main {
          my $dbp = new RoPkg::DB();
          $dbp->Add('dbi:mysql:database=mysql;host=localhost',
                    'root',
                    '',
                    'local');

          my $m = new RoPkg::Simba::Excludes(dbo => $dbp, dbo_method => 'db_local');

          print $m->Count,' excludes found in database',$/;
        }

        main();

Version

       0.2.2

See Also