DOKK / manpages / debian 12 / pinto / Pinto::Schema::Result::Stack.3pm.en
Pinto::Schema::Result::Stack(3pm) User Contributed Perl Documentation Pinto::Schema::Result::Stack(3pm)

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

version 0.14

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.

Pinto::Schema::Result::Stack

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0

  data_type: 'text'
  is_nullable: 0

  data_type: 'boolean'
  is_nullable: 0

  data_type: 'boolean'
  is_nullable: 0

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

"id"

"name"

Type: belongs_to

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

Pinto::Role::Schema::Result

Jeffrey Ryan Thalhammer <jeff@stratopan.com>

This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.

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

2022-10-16 perl v5.34.0