| 1 | package TaskPipe::SchemaManager::Settings; | ||
| 2 | |||
| 3 | 40 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 40 | 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 | 40 | 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 | 40 | 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 | 40 | 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 | 40 | 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 | 40 | 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 | 40 | 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 | 40 | 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 | 40 | __PACKAGE__->meta->make_immutable; | |
| 113 | 40 | 1; | |
| 114 | |||