Articulate/Storage/DBIC/Simple/Schema.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Articulate/Storage.pm ↑ Summary Articulate/Storage/DBIC/Simple/Schema/Result/Articulate/Item.pm »
1 package Articulate::Storage::DBIC::Simple::Schema;
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 ▶use base qw/DBIx::Class::Schema/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 __PACKAGE__->load_namespaces();
7  
8 =head1 NAME
9  
10 Articulate::Storage::DBIC::Simple::Schema
11  
12 =head1 SYNOPSIS
13  
14 $schema->connect($dsn, $user, $password, $options);
15  
16 This schema class extends L<DBIx::Class::Schema>; the schema has one resultset,
17 L<Articulate::Storage::DBIC::Simple::Schema::ResultSet::Articulate::Item>.
18  
19 =head1 METHODS
20  
21 =head3 connect_and_deploy
22  
23 This convenience constructor performs a C<connect> (using the args provided) followed by a C<deploy> (with no args). It is useful for deploying in environments where you are sure that no previous schema exists (e.g. an in-memory database).
24  
25 =head1 SEE ALSO
26  
27 =over
28  
29 =item * L<DBIx::Class::Schema>
30  
31 =item * L<Articulate::Storage::DBIC::Simple>
32  
33 =item * L<Articulate::Storage::DBIC::Simple::Schema::ResultSet::Articulate::Item>
34  
35 =back
36  
37 =cut
38  
39 1 ▶sub connect_and_deploy {
Subroutine connect_and_deploy: called CC=1 SCAR=0.0
Pod documented
40 1 my $package = shift;
41 1 my $self = $package->connect(@_);
42 1 $self->deploy();
43 1 return $self;
44 }
45  
46 2 1;
« Articulate/Storage.pm ↑ Summary Articulate/Storage/DBIC/Simple/Schema/Result/Articulate/Item.pm »