3 DBIx::Class::Manual::Glossary - Clarification of terms used.
7 This document lists various terms used in DBIx::Class and attempts to
10 =head1 DBIx::Class TERMS
14 Refers to a single physical schema within an RDBMS. Synonymous with the terms
15 'database', for MySQL; and 'schema', for most other RDBMS(s).
17 In other words, it's the 'xyz' _thing_ you're connecting to when using any of
18 the following L<DSN|DBI/connect>(s):
20 dbi:DriverName:xyz@hostname:port
21 dbi:DriverName:database=xyz;host=hostname;port=port
25 The act of turning database row data into objects in
26 language-space. DBIx::Class result classes can be set up to inflate
27 your data into perl objects which more usefully represent their
28 contents. For example: L<DBIx::Class::InflateColumn::DateTime> for
29 datetime or timestamp column data.
31 See also L<DBIx::Class::InflateColumn>.
35 The opposite of L</Inflation>. Existing perl objects that represent
36 column values can be passed to DBIx::Class methods to store into the
37 database. For example a L<DateTime> object can be automatically
38 deflated into a datetime string for insertion.
40 See L<DBIx::Class::InflateColumn> and other modules in that namespace.
44 Object-relational mapping, or Object-relationship modelling. Either
45 way it's a method of mapping the contents of database tables (rows),
46 to objects in programming-language-space. DBIx::Class is an ORM.
50 In DBIx::Class a relationship defines the connection between exactly
51 two tables. The relationship condition lists the columns in each table
52 that contain the same values. It is used to output an SQL JOIN
53 condition between the tables.
55 =head2 Relationship bridge
57 A relationship bridge, such as C<many_to_many> defines an accessor to
58 retrieve row contents across multiple relationships.
60 The difference between a bridge and a relationship is, that the bridge
61 cannot be used to C<join> tables in a C<search>, instead its component
62 relationships must be used.
66 A Schema object represents your entire table collection, plus the
67 connection to the database. You can create one or more schema objects,
68 connected to various databases, with various users, using the same set
69 of table L</Result Class> definitions.
71 At least one L<DBIx::Class::Schema> class is needed per database.
75 A Result class defines both a source of data (usually one per table),
76 and the methods that will be available in the L</Result> objects
77 created using that source.
79 One Result class is needed per data source (table, view, query) used
80 in your application, they should inherit from L<DBIx::Class::Core>.
82 See also: L<DBIx::Class::Manual::ResultClass>
86 ResultSource objects represent the source of your data, these are
87 sometimes (incorrectly) called table objects.
89 ResultSources do not need to be directly created, a ResultSource
90 instance is created for each L</Result Class> in your L</Schema>, by
91 the proxied methods C<table> and C<add_columns>.
93 See also: L<DBIx::Class::ResultSource/METHODS>
97 This is an object representing a set of conditions to filter data. It
98 can either be an entire table, or the results of a query. The actual
99 data is not held in the ResultSet, it is only a description of how to
102 See also: L<DBIx::Class::ResultSet/METHODS>
106 Result objects contain your actual data. They are returned from
107 ResultSet objects. These are sometimes (incorrectly) called
108 row objects, including older versions of the DBIC documentation.
110 See also: L<DBIx::Class::Manual::ResultClass>
126 Similar to a join, except the related result objects are fetched and
127 cached for future use, instead of used directly from the ResultSet. This
128 allows you to jump to different relationships within a Result without
129 worrying about generating a ton of extra SELECT statements.
135 Create, Read, Update, Delete. A general concept of something that can
136 do all four operations (INSERT, SELECT, UPDATE, DELETE), usually at a
141 This is an SQL keyword, it is used to link multiple tables in one SQL
142 statement. This enables us to fetch data from more than one table at
143 once, or filter data based on content in another table, without having
144 to issue multiple SQL queries.
148 A normalised database is a sane database. Each table contains only
149 data belonging to one concept, related tables refer to the key field
150 or fields of each other. Some links to webpages about normalisation
151 can be found in L<the FAQ|DBIx::Class::Manual::FAQ>.
155 In SQL, related data actually refers to data that are normalised into
156 the same table. (Yes. DBIC does mis-use this term.)
158 =head1 FURTHER QUESTIONS?
160 Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>.
162 =head1 COPYRIGHT AND LICENSE
164 This module is free software L<copyright|DBIx::Class/COPYRIGHT AND LICENSE>
165 by the L<DBIx::Class (DBIC) authors|DBIx::Class/AUTHORS>. You can
166 redistribute it and/or modify it under the same terms as the
167 L<DBIx::Class library|DBIx::Class/COPYRIGHT AND LICENSE>.