line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DBIx::WithClass; |
2
|
|
|
|
|
|
|
our $VERSION = '0.0000_01'; # TRIAL VERSION |
3
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:GEEKRUTH'; # AUTHORITY |
4
|
|
|
|
|
|
|
# ABSTRACT: DBIx::Class, with more class! |
5
|
1
|
|
|
1
|
|
245281
|
use Modern::Perl; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
7
|
|
6
|
1
|
|
|
1
|
|
210
|
use Carp; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
81
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
1; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=pod |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=encoding UTF-8 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
DBIx::WithClass - DBIx::Class, with more class! |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 VERSION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
version 0.0000_01 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
In Perl v5.38.0, the first iteration of the new class system will appear. This module is a stake-in-the-ground for |
25
|
|
|
|
|
|
|
a new module to tie that class system to databases. NO DEVELOPMENT IS DONE YET, as v5.38.0 is not yet out. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 GOALS OF THE PROJECT |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=over 4 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=item L MINUS L |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
L is downright brilliant; it ties databases to an ORM that makes a lot of sense in applications. But it has |
34
|
|
|
|
|
|
|
one semi-large shortcoming: It uses L, which is, unfortunately, a bit of a memory hog. Using core code should |
35
|
|
|
|
|
|
|
help with that. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=item INCORPORATE NEW FEATURES |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
There are a lot of really great helpers and addons to DBIx::Class that folks have written over its lifetime, not the |
40
|
|
|
|
|
|
|
least of which are L's wonderful L and |
41
|
|
|
|
|
|
|
L. We want to incorporate some of those best-of-breed additions to the module, to lighten the |
42
|
|
|
|
|
|
|
list of modules you have to load up to use it effectively. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item MORE DOCUMENTATION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
We want to add documentation to make getting started with the module even easier. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item EASY CHANGEOVER ADOPTION |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This module should, at a mimimum, function identically to L from the viewpoint of its consumer; that |
51
|
|
|
|
|
|
|
will make switching over easier for legacy applications: rework your Result and ResultSet classes to be Perl-native |
52
|
|
|
|
|
|
|
classes, and all of your reads, writes, and searches to the database Just Work. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=back |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 ASSISTANCE WELCOME |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
I don't want this to be "just me," or just some tiny group. Here are some specific ways you might be able to help: |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=over 4 |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item Writing code, once we start doing that |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item Writing documentation |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=item Testing, particularly on DB engines other than PostgreSQL/MySQL/MariaDB/SQLite |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=item Suggestions of your favorite addons that you think should be included |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=back |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=over 4 |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=item L, who frequently encourages my mad ideas. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=item L, who's always willing to ask me the hard questions about those ideas. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=back |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 AUTHOR |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
D Ruth Holloway |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
This software is copyright (c) 2023 by D Ruth Holloway. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
91
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=cut |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
__END__ |