TaskPipe/SchemaManager/Settings_Project.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« TaskPipe/SchemaManager/Settings_Global.pm ↑ Summary TaskPipe/Task/Settings.pm »
1 package TaskPipe::SchemaManager::Settings_Project;
2  
3 39 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 39 extends 'TaskPipe::SchemaManager::Settings';
5 39 with 'MooseX::ConfigCascade';
6  
7 =head1 NAME
8  
9 TaskPipe::SchemaManager::Settings_Project - project schema settings for TaskPipe
10  
11 =head1 METHODS
12  
13 =over
14  
15 =item table_prefix
16  
17 Table name clashes between taskpipe tables and other tables in your database can be prevented by specifying a table prefix which will be applied to all taskpipe table names
18  
19  
20 =cut
21  
22 39 has table_prefix => (is => 'ro', isa => 'Str', default => 'tp_');
23  
24  
25  
26 =item method
27  
28 The database connection method - e.g. dbi
29  
30 =item type
31  
32 The database connection type - e.g. mysql
33  
34  
35 =item database
36  
37 The name of the database to connect to
38  
39  
40 =item host
41  
42 The host to use to connect to your database (e.g. 'localhost')
43  
44  
45 =item username
46  
47 The username to connect to the database
48  
49  
50 =item password
51  
52 The password to connect to the database
53  
54  
55 =item module
56  
57 The package name of the module to use to keep the database schema (e.g. 'MyProject::Schema')
58  
59 =back
60  
61 =cut
62  
63 39 has module => (is => 'ro', isa => 'Str', default => 'TaskPipe::Schema');
64  
65 =head1 AUTHOR
66  
67 Tom Gracey <tomgracey@gmail.com>
68  
69 =head1 COPYRIGHT AND LICENSE
70  
71 Copyright (c) Tom Gracey 2018
72  
73 TaskPipe is free software, licensed under
74  
75 The GNU Public License Version 3
76  
77 =cut
78  
79 39 __PACKAGE__->meta->make_immutable;
80 39 1;
« TaskPipe/SchemaManager/Settings_Global.pm ↑ Summary TaskPipe/Task/Settings.pm »