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

Pinto::Schema::Result::Stack - Represents a named set of Packages

Accessors

id
         data_type: 'integer'
         is_auto_increment: 1
         is_nullable: 0

   name
         data_type: 'text'
         is_nullable: 0

   is_default
         data_type: 'boolean'
         is_nullable: 0

   is_locked
         data_type: 'boolean'
         is_nullable: 0

   properties
         data_type: 'text'
         is_nullable: 0

   head
         data_type: 'integer'
         is_foreign_key: 1
         is_nullable: 0

Author

       Jeffrey Ryan Thalhammer <jeff@stratopan.com>

Methods

get_distribution(target=>$target)
       Given a Pinto::Target::Package, returns the Pinto::Schema::Result::Distribution which contains the
       package with the same name as the target andthesameorhigherversionasthetarget.  Returns nothing
       if no such distribution is found in this stack.

       Given a Pinto::Target::Distribution, returns the Pinto::Schema::Result::Distribution from this stack with
       the same author id and archive attributes as the target.  Returns nothing if no such distribution is
       found in this stack.

       You can also pass a "cache" argument that must be a reference to a hash.  It will be used to cache
       results so that repeated calls to "get_distribution" require fewer trips to the database.  It is up to
       you to decide when to expire the cache.

Moose Roles Applied

       •   Pinto::Role::Schema::Result

Name

       Pinto::Schema::Result::Stack

Primary Key

       •   "id"

Relations

head
       Type: belongs_to

       Related object: Pinto::Schema::Result::Revision

Table: "Stack"

Unique Constraints

"name_unique"
       •   "name"

Version

       version 0.14

See Also