TaskPipe/SchemaManager/Settings.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« TaskPipe/Sample_Stubs.pm ↑ Summary TaskPipe/SchemaManager/Settings_Global.pm »
1 package TaskPipe::SchemaManager::Settings;
2  
3 38 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 38 with 'MooseX::ConfigCascade';
5  
6 =head1 NAME
7  
8 TaskPipe::SchemaManager::Settings - settings for L<TaskPipe::SchemaManager>
9  
10 =head1 METHODS
11  
12 =over
13  
14 =item table_prefix
15  
16 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
17  
18 =cut
19  
20  
21 =item method
22  
23 The database connection method - e.g. dbi
24  
25 =cut
26  
27 38 has method => (is => 'ro', isa => 'Str', default => 'dbi');
28  
29  
30  
31  
32  
33 =item type
34  
35 The database connection type - e.g. mysql
36  
37 =cut
38  
39 38 has type => (is => 'ro', isa => 'Str', default => 'mysql');
40  
41  
42  
43  
44  
45 =item database
46  
47 The name of the database to connect to
48  
49 =cut
50  
51 38 has database => (is => 'ro', isa => 'Str');
52  
53  
54  
55  
56 =item host
57  
58 The host to use to connect to your database (e.g. 'localhost')
59  
60 =cut
61  
62 38 has host => (is => 'ro', isa => 'Str', default => 'localhost');
63  
64  
65  
66 =item port
67  
68 The port to use to connect to your database (leave blank to use the default)
69  
70 =cut
71  
72 38 has port => (is => 'ro', isa => 'Str', default => '');
73  
74  
75  
76  
77 =item username
78  
79 The username to connect to the database
80  
81 =cut
82  
83 38 has username => (is => 'ro', isa => 'Str', default => 'taskpipe_user');
84  
85  
86  
87 =item password
88  
89 The password to connect to the database
90  
91 =back
92  
93 =cut
94  
95 38 has password => (is => 'ro', isa => 'Str');
96  
97  
98 =head1 AUTHOR
99  
100 Tom Gracey <tomgracey@gmail.com>
101  
102 =head1 COPYRIGHT AND LICENSE
103  
104 Copyright (c) Tom Gracey 2018
105  
106 TaskPipe is free software, licensed under
107  
108 The GNU Public License Version 3
109  
110 =cut
111  
112 38 __PACKAGE__->meta->make_immutable;
113 38 1;
114  
« TaskPipe/Sample_Stubs.pm ↑ Summary TaskPipe/SchemaManager/Settings_Global.pm »