| 1 | package DBIx::QuickORM::Manual; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 2 | our $VERSION = '0.000031'; | |
| 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, and what differs between databases. | ||
| 46 | |||
| 47 | =head2 AGGREGATES | ||
| 48 | |||
| 49 | L<DBIx::QuickORM::Manual::Aggregates> - C<group_by>, C<having>, computed | ||
| 50 | columns and their specs, types and keys on aggregate rows. | ||
| 51 | |||
| 52 | =head2 BACKGROUND | ||
| 53 | |||
| 54 | L<DBIx::QuickORM::Manual::Background> - C<async>, C<aside>, and C<forked> | ||
| 55 | queries, one query shared by a handle's reading methods versus a new one per | ||
| 56 | C<iter>, transactions, forking, and which databases support what. | ||
| 57 | |||
| 58 | =head2 DIALECTS | ||
| 59 | |||
| 60 | L<DBIx::QuickORM::Manual::Dialects> - What differs between PostgreSQL, | ||
| 61 | MySQL, MariaDB, SQLite, and DuckDB, and what it means for your code. | ||
| 62 | |||
| 63 | =head2 FOREIGNKEYS | ||
| 64 | |||
| 65 | L<DBIx::QuickORM::Manual::ForeignKeys> - C<follow_fk>: direction, C<link>, | ||
| 66 | single and multi handles, NULL keys, and following from aggregate and join | ||
| 67 | rows. Also C<insert_fk> and C<insert_many_fk> for inserting linked rows. | ||
| 68 | |||
| 69 | =head2 JOINS | ||
| 70 | |||
| 71 | L<DBIx::QuickORM::Manual::Joins> - Inner and left joins, aliases, self | ||
| 72 | joins, joining from a joined table, and the flat join rows. | ||
| 73 | |||
| 74 | =head2 TRANSACTIONS | ||
| 75 | |||
| 76 | L<DBIx::QuickORM::Manual::Transactions> - Block and object forms, | ||
| 77 | savepoints, C<retry>, the rows you hold across a transaction, and writing a | ||
| 78 | row read before it began. | ||
| 79 | |||
| 80 | =head1 ORM CONCEPTS | ||
| 81 | |||
| 82 | Things the ORM provides and manages itself, which are not a direct map to a | ||
| 83 | database feature. | ||
| 84 | |||
| 85 | =head2 BULKINSERT | ||
| 86 | |||
| 87 | L<DBIx::QuickORM::Manual::BulkInsert> - C<insert_many> and C<insert_many_fk>: | ||
| 88 | the rows it returns, just the count, all-or-nothing batches, and MySQL | ||
| 89 | without C<RETURNING>. | ||
| 90 | |||
| 91 | =head2 CACHING | ||
| 92 | |||
| 93 | L<DBIx::QuickORM::Manual::Caching> - The one canonical copy of each row: why | ||
| 94 | writes need it, C<enforce_canon>, reads from the canonical copy, | ||
| 95 | C<retain_cache>, C<clear_cache>, and when to care. | ||
| 96 | |||
| 97 | =head2 ERRORS | ||
| 98 | |||
| 99 | L<DBIx::QuickORM::Manual::Errors> - Database errors and their kinds, the | ||
| 100 | ORM's own errors, and retrying after deadlocks, serialization failures, and | ||
| 101 | lock timeouts. | ||
| 102 | |||
| 103 | =head2 KEYS | ||
| 104 | |||
| 105 | L<DBIx::QuickORM::Manual::Keys> - Primary key forms, typed keys that match | ||
| 106 | in any form, the C<format> hint, and generated keys. | ||
| 107 | |||
| 108 | =head2 VALUES | ||
| 109 | |||
| 110 | L<DBIx::QuickORM::Manual::Values> - Deflation, inflation, and the C<raw>, | ||
| 111 | C<inflated>, C<binary>, and C<sql> markers: when and why. | ||
| 112 | |||
| 113 | =head1 CUSTOMIZING THE ORM | ||
| 114 | |||
| 115 | How to plug your own code into the ORM: ORM classes, row classes, and types. | ||
| 116 | |||
| 117 | =head2 CLASSES | ||
| 118 | |||
| 119 | L<DBIx::QuickORM::Manual::Classes> - The C<orm>, C<table>, and C<row> | ||
| 120 | blocks: an ORM defined as classes, with C<override>, omitted and default | ||
| 121 | fields, typed fields with hints, a renamed keyword, C<no>, and precedence. | ||
| 122 | |||
| 123 | =head2 ROWCLASSES | ||
| 124 | |||
| 125 | L<DBIx::QuickORM::Manual::RowClasses> - Row classes for one table, every | ||
| 126 | table (or each table by name), or one query. Also plain hashrefs, rows not in | ||
| 127 | the database, consuming the role, and what the ORM needs of a row class. | ||
| 128 | |||
| 129 | =head2 TYPES | ||
| 130 | |||
| 131 | L<DBIx::QuickORM::Manual::Types> - Writing a type: C<inflate> and | ||
| 132 | C<deflate>, claims for C<autotype>, canonical keys, cached values, and | ||
| 133 | registering it, with a Money and a Tags type. | ||
| 134 | |||
| 135 | =cut | ||
| 136 | |||
| 137 | 2 | 1; | |
| 138 | |||
| 139 | __END__ | ||