Pinto::Schema::Result::Stack(3pm)

Pinto::Schema::Result::Stack3pm

Represents a named set of packages

Version

version 0.14

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 and the same or higher version as the target. 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.

TABLE: "stack"

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

Primary key

•

"id"

Unique constraints

"name_unique"

•

"name"

Relations

head

Type: belongs_to

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

Moose ROLES APPLIED

•

Pinto::Role::Schema::Result

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

Author

Jeffrey Ryan Thalhammer <[email protected]>

From pinto 0.14000-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.