DBIx-QuickORM

 view release on metacpan or  search on metacpan

lib/DBIx/QuickORM/Manual/Recipes.pm  view on Meta::CPAN

                };

                ...;
            };
        };
    };

Then to use it:

    use My::ORM;

    my $orm_mysql = orm('my_orm:mysql');
    my $orm_pgsql = orm('my_orm:pgsql');

Each ORM object is a complete and self-contained ORM with its own caching and
db connection. One connects to MySQL and one connects to PostgreSQL. Both can
ask for rows in the C<differs> table, on MySQL it will query the
C<differs_mysql>, on PostgreSQL it will query the C<differs_pgsql> table. You can
use them both at the same time in the same code.

=head1 MORE RECIPES

Some recipes live with the guide that owns the topic:

=over 4

=item Define tables in their own packages/files

See L<DBIx::QuickORM::Manual::Schema>.

=item Advanced composing (standalone databases and schemas, servers with
multiple databases, combining them into multiple ORMs)

See L<DBIx::QuickORM::Manual::Schema>.

=back

=head1 SEE ALSO

=over 4

=item L<DBIx::QuickORM::Manual>

The documentation hub linking every tutorial, guide, and reference doc.

=item L<DBIx::QuickORM::Manual::Schema>

Compose schemas, tables, columns, and whole ORMs - including defining tables in
their own files and advanced composition.

=item L<DBIx::QuickORM::Manual::Querying>

Fetch, create, update, and delete rows with handles.

=item L<DBIx::QuickORM::Manual::Relations>

Define links (foreign keys) and follow them between rows, plus joins.

=item L<DBIx::QuickORM::Manual::Transactions>

Transactions, nested transactions and savepoints, callbacks, and automatic
retry.

=item L<DBIx::QuickORM::Manual::Async>

Asynchronous, aside, and forked queries, and other multi-connection work.

=item L<DBIx::QuickORM::Manual::Types>

Inflating and deflating column values (JSON, UUID, ...) and writing your own
type classes.

=back

=head1 SOURCE

The source code repository for DBIx-QuickORM can be found at
L<https://github.com/exodist/DBIx-QuickORM/>.

=head1 MAINTAINERS

=over 4

=item Chad Granum E<lt>exodist@cpan.orgE<gt>

=back

=head1 AUTHORS

=over 4

=item Chad Granum E<lt>exodist@cpan.orgE<gt>

=back

=head1 COPYRIGHT

Copyright Chad Granum E<lt>exodist7@gmail.comE<gt>.

This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

See L<https://dev.perl.org/licenses/>

=cut



( run in 0.785 second using v1.01-cache-2.11-cpan-5b529ec07f3 )