1DBIx::Class::Manual::ReUssuelrtCCloanstsr(i3b)uted PerlDDBoIcxu:m:eCnltaastsi:o:nManual::ResultClass(3)
2
3
4

NAME

6       DBIx::Class::Manual::ResultClass - Representing a single result (row)
7       from a DB query
8

SYNOPSIS

10         package My::Schema::Result::Track;
11
12         use parent 'DBIx::Class::Core';
13
14         __PACKAGE__->table('tracks');
15
16         __PACKAGE__->add_columns({
17           id => {
18             data_type => 'int',
19             is_auto_increment => 1,
20           },
21           cd_id => {
22             data_type => 'int',
23           },
24           title => {
25             data_type => 'varchar',
26             size => 50,
27           },
28           rank => {
29             data_type => 'int',
30             is_nullable => 1,
31           },
32         });
33
34         __PACKAGE__->set_primary_key('id');
35         __PACKAGE__->add_unique_constraint(u_title => ['cd_id', 'title']);
36

DESCRIPTION

38       In DBIx::Class, a user normally receives query results as instances of
39       a certain "Result Class", depending on the main query source.  Besides
40       being the primary "toolset" for interaction with your data, a "Result
41       Class" also serves to establish source metadata, which is then used
42       during initialization of your DBIx::Class::Schema instance.
43
44       Because of these multiple seemingly conflicting purposes, it is hard to
45       aggregate the documentation of various methods available on a typical
46       "Result Class". This document serves as a general overview of "Result
47       Class" declaration best practices, and offers an index of the available
48       methods (and the Components/Roles which provide them).
49

INHERITED METHODS

51       DBIx::Class::Relationship
52           has_many, has_one, might_have, belongs_to, many_to_many
53
54       DBIx::Class::Relationship::Base
55           register_relationship, count_related, create_related,
56           delete_related, find_or_create_related, find_or_new_related,
57           find_related, new_related, related_resultset, search_related,
58           search_related_rs, set_from_related, update_from_related,
59           update_or_create_related
60
61       DBIx::Class::InflateColumn
62           get_inflated_column, inflate_column, set_inflated_column,
63           store_inflated_column
64
65       DBIx::Class::PK
66           ID, id, ident_condition
67
68       DBIx::Class::Row
69           delete, update, copy, discard_changes, get_column, get_columns,
70           get_dirty_columns, get_from_storage, get_inflated_columns,
71           has_column_loaded, in_storage, inflate_result, insert,
72           insert_or_update, is_changed, is_column_changed, make_column_dirty,
73           new, register_column, result_source, set_column, set_columns,
74           set_inflated_columns, store_column, throw_exception,
75           update_or_insert
76
77       DBIx::Class::ResultSourceProxy::Table
78           table, table_class
79
80       DBIx::Class::ResultSource
81           add_column, add_columns, add_relationship, add_unique_constraint,
82           add_unique_constraints, column_info, column_info_from_storage,
83           columns, columns_info, has_column, has_relationship,
84           primary_columns, relationship_info, relationships, remove_column,
85           remove_columns, result_class, resultset_attributes,
86           resultset_class, sequence, set_primary_key, source_info,
87           source_name, unique_constraint_columns, unique_constraint_names,
88           unique_constraints
89

FURTHER QUESTIONS?

91       Check the list of additional DBIC resources.
92
94       This module is free software copyright by the DBIx::Class (DBIC)
95       authors. You can redistribute it and/or modify it under the same terms
96       as the DBIx::Class library.
97
98
99
100perl v5.32.0                      2020-07-28DBIx::Class::Manual::ResultClass(3)
Impressum