1Pinto::Schema::Result::USstearckC(o3n)tributed Perl DocuPmiennttoa:t:iSocnhema::Result::Stack(3)
2
3
4

NAME

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

VERSION

9       version 0.14
10

METHODS

12   get_distribution( target => $target )
13       Given a Pinto::Target::Package, returns the
14       Pinto::Schema::Result::Distribution which contains the package with the
15       same name as the target and the same or higher version as the target.
16       Returns nothing if no such distribution is found in this stack.
17
18       Given a Pinto::Target::Distribution, returns the
19       Pinto::Schema::Result::Distribution from this stack with the same
20       author id and archive attributes as the target.  Returns nothing if no
21       such distribution is found in this stack.
22
23       You can also pass a "cache" argument that must be a reference to a
24       hash.  It will be used to cache results so that repeated calls to
25       "get_distribution" require fewer trips to the database.  It is up to
26       you to decide when to expire the cache.
27

NAME

29       Pinto::Schema::Result::Stack
30

TABLE: "stack"

ACCESSORS

33   id
34         data_type: 'integer'
35         is_auto_increment: 1
36         is_nullable: 0
37
38   name
39         data_type: 'text'
40         is_nullable: 0
41
42   is_default
43         data_type: 'boolean'
44         is_nullable: 0
45
46   is_locked
47         data_type: 'boolean'
48         is_nullable: 0
49
50   properties
51         data_type: 'text'
52         is_nullable: 0
53
54   head
55         data_type: 'integer'
56         is_foreign_key: 1
57         is_nullable: 0
58

PRIMARY KEY

60       •   "id"
61

UNIQUE CONSTRAINTS

63   "name_unique"
64       •   "name"
65

RELATIONS

67   head
68       Type: belongs_to
69
70       Related object: Pinto::Schema::Result::Revision
71

Moose ROLES APPLIED

73       •   Pinto::Role::Schema::Result
74

AUTHOR

76       Jeffrey Ryan Thalhammer <jeff@stratopan.com>
77
79       This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.
80
81       This is free software; you can redistribute it and/or modify it under
82       the same terms as the Perl 5 programming language system itself.
83
84
85
86perl v5.34.0                      2021-07-22   Pinto::Schema::Result::Stack(3)
Impressum