blib/lib/DBIx/QuickORM/Manual.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 10 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package DBIx::QuickORM::Manual;
2 use strict;
3 use warnings;
4  
5 our $VERSION = '0.000033';
6  
7 =pod
8  
9 =encoding UTF-8
10  
11 =head1 NAME
12  
13 DBIx::QuickORM::Manual - The DBIx::QuickORM manual.
14  
15 =head1 DESCRIPTION
16  
17 This is the documentation hub. Several subsystems and capabilities of the
18 ORM deserve their own manual page, as piecing them together from individual
19 module docs would be tedious.
20  
21 There is also a quickstart guide for anyone who wants the quickest possible
22 introduction to using the ORM and many of its advanced features, all building
23 off a simple initial example.
24  
25 =head1 FOR NEWCOMERS
26  
27 This is the documentation most useful to people who are new to the ORM: the
28 quickstart guide, and a map for readers coming from DBIx::Class.
29  
30 =head2 QUICKSTART
31  
32 L<DBIx::QuickORM::Manual::Quickstart> - The quickstart introduces the
33 fundamentals with a simple example, then expands into advanced capabilities
34 from there.
35  
36 =head2 DBIC
37  
38 L<DBIx::QuickORM::Manual::DBIC> - Coming from DBIx::Class: Schema,
39 ResultSet, Row, relationships, prefetch, inflation, and transactions mapped
40 to the ORM, with each task side by side.
41  
42 =head1 DATABASE FUNCTIONALITY
43  
44 Database capabilities the ORM exposes: joins, aggregates, background queries,
45 transactions, foreign keys, temporary tables and views, and what differs
46 between databases.
47  
48 =head2 AGGREGATES
49  
50 L<DBIx::QuickORM::Manual::Aggregates> - C<group_by>, C<having>, computed
51 columns and their specs, types and keys on aggregate rows.
52  
53 =head2 BACKGROUND
54  
55 L<DBIx::QuickORM::Manual::Background> - C<async>, C<aside>, and C<forked>
56 queries, one query shared by a handle's reading methods versus a new one per
57 C<iter>, transactions, forking, and which databases support what.
58  
59 =head2 DIALECTS
60  
61 L<DBIx::QuickORM::Manual::Dialects> - What differs between PostgreSQL,
62 MySQL, MariaDB, SQLite, and DuckDB, and what it means for your code.
63  
64 =head2 FOREIGNKEYS
65  
66 L<DBIx::QuickORM::Manual::ForeignKeys> - C<follow_fk>: direction, C<link>,
67 single and multi handles, NULL keys, and following from aggregate and join
68 rows. Also C<insert_fk> and C<insert_many_fk> for inserting linked rows.
69  
70 =head2 JOINS
71  
72 L<DBIx::QuickORM::Manual::Joins> - Inner and left joins, aliases, self
73 joins, joining from a joined table, and the flat join rows.
74  
75 =head2 SCHEMABUILDING
76  
77 L<DBIx::QuickORM::Manual::SchemaBuilding> - Writing the database's tables in
78 code: constraints, foreign keys, column types and collations per database,
79 tables as SQL, views, settings, extensions, enum types, creating the
80 schema, and getting its SQL.
81  
82 =head2 TEMPTABLES
83  
84 L<DBIx::QuickORM::Manual::TempTables> - Temporary tables and views: building
85 them, column types, their lifetime and transactions on every database, and
86 the views the scan finds.
87  
88 =head2 TRANSACTIONS
89  
90 L<DBIx::QuickORM::Manual::Transactions> - Block and object forms,
91 savepoints, C<retry>, the rows you hold across a transaction, and writing a
92 row read before it began.
93  
94 =head1 ORM CONCEPTS
95  
96 Things the ORM provides and manages itself, which are not a direct map to a
97 database feature.
98  
99 =head2 BULKINSERT
100  
101 L<DBIx::QuickORM::Manual::BulkInsert> - C<insert_many> and C<insert_many_fk>:
102 the rows it returns, just the count, all-or-nothing batches, and MySQL
103 without C<RETURNING>.
104  
105 =head2 CACHING
106  
107 L<DBIx::QuickORM::Manual::Caching> - The one canonical copy of each row: why
108 writes need it, C<enforce_canon>, reads from the canonical copy,
109 C<retain_cache>, C<clear_cache>, and when to care.
110  
111 =head2 ERRORS
112  
113 L<DBIx::QuickORM::Manual::Errors> - Database errors and their kinds, the
114 ORM's own errors, and retrying after deadlocks, serialization failures, and
115 lock timeouts.
116  
117 =head2 KEYS
118  
119 L<DBIx::QuickORM::Manual::Keys> - Primary key forms, typed keys that match
120 in any form, the C<format> hint, and generated keys.
121  
122 =head2 OPTIMIZATIONS
123  
124 L<DBIx::QuickORM::Manual::Optimizations> - What is fast, what is slow, and
125 the faster forms (C<bare>, C<no_cache>, C<raw_field>, leaving fields out,
126 bulk writes), with timings next to DBIx::Class.
127  
128 =head2 VALUES
129  
130 L<DBIx::QuickORM::Manual::Values> - Deflation, inflation, and the C<raw>,
131 C<inflated>, C<binary>, and C<sql> markers: when and why.
132  
133 =head1 CUSTOMIZING THE ORM
134  
135 How to plug your own code into the ORM: ORM classes, row classes, and types.
136  
137 =head2 CLASSES
138  
139 L<DBIx::QuickORM::Manual::Classes> - The C<orm>, C<table>, and C<row>
140 blocks: an ORM defined as classes, with C<override>, omitted and default
141 fields, typed fields with hints, a renamed keyword, C<no>, and precedence.
142  
143 =head2 ROWCLASSES
144  
145 L<DBIx::QuickORM::Manual::RowClasses> - Row classes for one table, every
146 table (or each table by name), or one query. Also plain hashrefs, rows not in
147 the database, consuming the role, and what the ORM needs of a row class.
148  
149 =head2 TYPES
150  
151 L<DBIx::QuickORM::Manual::Types> - Writing a type: C<inflate> and
152 C<deflate>, claims for C<autotype>, canonical keys, cached values, and
153 registering it, with a Money and a Tags type.
154  
155 =cut
156  
157 1;
158  
159 __END__