/usr/share/perl5/DBIx/Class/DeploymentHandler.pm is in libdbix-class-deploymenthandler-perl 0.002218-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 | package DBIx::Class::DeploymentHandler;
$DBIx::Class::DeploymentHandler::VERSION = '0.002218';
# ABSTRACT: Extensible DBIx::Class deployment
use Moose;
extends 'DBIx::Class::DeploymentHandler::Dad';
# a single with would be better, but we can't do that
# see: http://rt.cpan.org/Public/Bug/Display.html?id=46347
with 'DBIx::Class::DeploymentHandler::WithApplicatorDumple' => {
interface_role => 'DBIx::Class::DeploymentHandler::HandlesDeploy',
class_name => 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator',
delegate_name => 'deploy_method',
attributes_to_assume => [qw(schema schema_version)],
attributes_to_copy => [qw(
ignore_ddl databases script_directory sql_translator_args force_overwrite
)],
},
'DBIx::Class::DeploymentHandler::WithApplicatorDumple' => {
interface_role => 'DBIx::Class::DeploymentHandler::HandlesVersioning',
class_name => 'DBIx::Class::DeploymentHandler::VersionHandler::Monotonic',
delegate_name => 'version_handler',
attributes_to_assume => [qw( database_version schema_version to_version )],
},
'DBIx::Class::DeploymentHandler::WithApplicatorDumple' => {
interface_role => 'DBIx::Class::DeploymentHandler::HandlesVersionStorage',
class_name => 'DBIx::Class::DeploymentHandler::VersionStorage::Standard',
delegate_name => 'version_storage',
attributes_to_assume => ['schema'],
};
with 'DBIx::Class::DeploymentHandler::WithReasonableDefaults';
sub prepare_version_storage_install {
my $self = shift;
$self->prepare_resultsource_install({
result_source => $self->version_storage->version_rs->result_source
});
}
sub install_version_storage {
my $self = shift;
my $version = (shift||{})->{version} || $self->schema_version;
$self->install_resultsource({
result_source => $self->version_storage->version_rs->result_source,
version => $version,
});
}
sub prepare_install {
$_[0]->prepare_deploy;
$_[0]->prepare_version_storage_install;
}
# the following is just a hack so that ->version_storage
# won't be lazy
sub BUILD { $_[0]->version_storage }
__PACKAGE__->meta->make_immutable;
1;
#vim: ts=2 sw=2 expandtab
__END__
=pod
=head1 NAME
DBIx::Class::DeploymentHandler - Extensible DBIx::Class deployment
=head1 SYNOPSIS
use aliased 'DBIx::Class::DeploymentHandler' => 'DH';
my $s = My::Schema->connect(...);
my $dh = DH->new({
schema => $s,
databases => 'SQLite',
sql_translator_args => { add_drop_table => 0 },
});
$dh->prepare_install;
$dh->install;
or for upgrades:
use aliased 'DBIx::Class::DeploymentHandler' => 'DH';
my $s = My::Schema->connect(...);
my $dh = DH->new({
schema => $s,
databases => 'SQLite',
sql_translator_args => { add_drop_table => 0 },
});
$dh->prepare_deploy;
$dh->prepare_upgrade({
from_version => 1,
to_version => 2,
});
$dh->upgrade;
=head1 DESCRIPTION
C<DBIx::Class::DeploymentHandler> is, as its name suggests, a tool for
deploying and upgrading databases with L<DBIx::Class>. It is designed to be
much more flexible than L<DBIx::Class::Schema::Versioned>, hence the use of
L<Moose> and lots of roles.
C<DBIx::Class::DeploymentHandler> itself is just a recommended set of roles
that we think will not only work well for everyone, but will also yield the
best overall mileage. Each role it uses has its own nuances and
documentation, so I won't describe all of them here, but here are a few of the
major benefits over how L<DBIx::Class::Schema::Versioned> worked (and
L<DBIx::Class::DeploymentHandler::Deprecated> tries to maintain compatibility
with):
=over
=item *
Downgrades in addition to upgrades.
=item *
Multiple sql files files per upgrade/downgrade/install.
=item *
Perl scripts allowed for upgrade/downgrade/install.
=item *
Just one set of files needed for upgrade, unlike before where one might need
to generate C<factorial(scalar @versions)>, which is just silly.
=item *
And much, much more!
=back
That's really just a taste of some of the differences. Check out each role for
all the details.
=head1 WHERE IS ALL THE DOC?!
C<DBIx::Class::DeploymentHandler> extends
L<DBIx::Class::DeploymentHandler::Dad>, so that's probably the first place to
look when you are trying to figure out how everything works.
Next would be to look at all the pieces that fill in the blanks that
L<DBIx::Class::DeploymentHandler::Dad> expects to be filled. They would be
L<DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator>,
L<DBIx::Class::DeploymentHandler::VersionHandler::Monotonic>,
L<DBIx::Class::DeploymentHandler::VersionStorage::Standard>, and
L<DBIx::Class::DeploymentHandler::WithReasonableDefaults>.
=head1 WHY IS THIS SO WEIRD
C<DBIx::Class::DeploymentHandler> has a strange structure. The gist is that it
delegates to three small objects that are proxied to via interface roles that
then create the illusion of one large, monolithic object. Here is a diagram
that might help:
=begin text
Figure 1
+------------+
| |
+------------+ Deployment +-----------+
| | Handler | |
| | | |
| +-----+------+ |
| | |
| | |
: : :
v v v
/-=-------\ /-=-------\ /-=----------\
| | | | | | (interface roles)
| Handles | | Handles | | Handles |
| Version | | Deploy | | Versioning |
| Storage | | | | |
| | \-+--+--+-/ \-+---+---+--/
\-+--+--+-/ | | | | | |
| | | | | | | | |
| | | | | | | | |
v v v v v v v v v
+----------+ +--------+ +-----------+
| | | | | | (implementations)
| Version | | Deploy | | Version |
| Storage | | Method | | Handler |
| Standard | | SQLT | | Monotonic |
| | | | | |
+----------+ +--------+ +-----------+
=end text
=for html <p><i>Figure 1</i><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAvgAAAGyCAIAAAAeaycjAAA2w0lEQVR42u2deXAUZf7/STI5BgJCIBIgfAUCkUIwWbEEQgQhVAGlVLGsgAZcwNItsXYX/mB3oYoSV1xx8drVUlSUcIqKxSGBIEGucESwcAmCihwJISEJxyYhd0B+n/L5bVdXT9LpSWaSnpnX64/UdE/P053u93ye10z39NPuDgAAAICf0o5dAAAAAIgOAAAAgM+Kzi8AAAAAfgGiAwAAAIgOAAAAAKIDAAAAgOgAAAAAIDoAAAAAiA4AAAAAogMAAACIDgAAAACiAwAAAIDoAAAAACA6AAAAAIgOAAAAAKIDAAAAiA6iAwAAAIgOAAAAAKIDAAAAgOgAAAAAIDoAAAAAiA4AAAAgOogOAAAAIDoAAAAAiA4AAAAAogMAAACA6AAAAAAgOgAAAACIDgAAACA6AAAAAIgOAAAAAKIDAAAAgOgAAAAAIDoAAAAAiA74MgMHDmwHbY0cBaIIAIgOgOeRXvYOtDVyFMrLyysqKqqrq2tra2/dukUyAQDRAUB0/Ed08vPzi4uLb9y4IbojrkMyAQDRAUB0/Ed0Tp8+ff78+YKCAnGdqqoqkgkAiA4AouM/onPkyJGTJ0+K6xQVFd28eZNkAgCiA4Do+I/oZGRkiOt8//33ly5dKi0tJZkAgOgAIDr+IzqfffbZ7t27jx8/fu7cuevXr5NMAEB0ABAd/xGdjRs37tq169ixYz///DOiAwCIDgCig+gAACA6AIgOogMAgOgAogOIDgAAogOIDiA6AIDoIDqA6ACiAwCIDgCig+ggOgCA6AAgOogOAACiA4DoIDoAAIgOAKKD6AAAIDqA6ACiAwCA6ACiA4gOACA6AIgOIDoAgOgAIDqIDgAAogOA6CA6AACIDkALRafdrwQFBUVERMTExCQlJS1ZsqSgoMCDvb4v6ldLNhvRAQBEB8BeoiMP6uvr8/Pz09LS+vbte9ddd23btg3RQX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AAAEB0AAAAABAdAAAAQHQQHQAAAEB0AAAAABAdAAAAAEQHAAAAANEBAAAAQHQAAAAA0UF0AAAAANEBAAAAQHQAAAAAEB0AAAAARAcAAAAA0QEAAABAdAAAAADRAQAAAEB0AAAAAOwuOgAAAAB+BqIDAAAAiA4AAACAr/H/AGVbCbHeKGjvAAAAAElFTkSuQmCC"></img></p>
The nice thing about this is that we have well defined interfaces for the
objects that comprise the C<DeploymentHandler>, the smaller objects can be
tested in isolation, and the smaller objects can even be swapped in easily. But
the real win is that you can subclass the C<DeploymentHandler> without knowing
about the underlying delegation; you just treat it like normal Perl and write
methods that do what you want.
=head1 THIS SUCKS
You started your project and weren't using C<DBIx::Class::DeploymentHandler>?
Lucky for you I had you in mind when I wrote this doc.
First,
L<define the version|DBIx::Class::DeploymentHandler::Manual::Intro/Sample_database>
in your main schema file (maybe using C<$VERSION>).
Then you'll want to just install the version_storage:
my $s = My::Schema->connect(...);
my $dh = DBIx::Class::DeploymentHandler->new({ schema => $s });
$dh->prepare_version_storage_install;
$dh->install_version_storage;
Then set your database version:
$dh->add_database_version({ version => $s->schema_version });
Now you should be able to use C<DBIx::Class::DeploymentHandler> like normal!
=head1 LOGGING
This is a complex tool, and because of that sometimes you'll want to see
what exactly is happening. The best way to do that is to use the built in
logging functionality. It the standard six log levels; C<fatal>, C<error>,
C<warn>, C<info>, C<debug>, and C<trace>. Most of those are pretty self
explanatory. Generally a safe level to see what all is going on is debug,
which will give you everything except for the exact SQL being run.
To enable the various logging levels all you need to do is set an environment
variables: C<DBICDH_FATAL>, C<DBICDH_ERROR>, C<DBICDH_WARN>, C<DBICDH_INFO>,
C<DBICDH_DEBUG>, and C<DBICDH_TRACE>. Each level can be set on its own,
but the default is the first three on and the last three off, and the levels
cascade, so if you turn on trace the rest will turn on automatically.
=head1 DONATIONS
If you'd like to thank me for the work I've done on this module, don't give me
a donation. I spend a lot of free time creating free software, but I do it
because I love it.
Instead, consider donating to someone who might actually need it. Obviously
you should do research when donating to a charity, so don't just take my word
on this. I like Matthew 25: Ministries:
L<http://www.m25m.org/>, but there are a host of other
charities that can do much more good than I will with your money.
(Third party charity info here:
L<http://www.charitynavigator.org/index.cfm?bay=search.summary&orgid=6901>
=head1 METHODS
=head2 prepare_version_storage_install
$dh->prepare_version_storage_install
Creates the needed C<.sql> file to install the version storage and not the rest
of the tables
=head2 prepare_install
$dh->prepare_install
First prepare all the tables to be installed and the prepare just the version
storage
=head2 install_version_storage
$dh->install_version_storage
Install the version storage and not the rest of the tables
=head1 AUTHOR
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by Arthur Axel "fREW" Schmidt.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
|