| 1 | package TaskPipe::SchemaManager::Settings_Global; | ||
| 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 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | TaskPipe::SchemaManager::Settings_Global - global schema settings for TaskPipe | ||
| 11 | |||
| 12 | =head1 METHODS | ||
| 13 | |||
| 14 | =over | ||
| 15 | |||
| 16 | =item table_prefix | ||
| 17 | |||
| 18 | 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 | ||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | 39 | has table_prefix => (is => 'ro', isa => 'Str', default => ''); | |
| 25 | |||
| 26 | |||
| 27 | =item method | ||
| 28 | |||
| 29 | The database connection method - e.g. dbi | ||
| 30 | |||
| 31 | =item type | ||
| 32 | |||
| 33 | The database connection type - e.g. mysql | ||
| 34 | |||
| 35 | =item database | ||
| 36 | |||
| 37 | The database of the database to connect to | ||
| 38 | |||
| 39 | =item host | ||
| 40 | |||
| 41 | The host to use to connect to your database (e.g. 'localhost') | ||
| 42 | |||
| 43 | =item username | ||
| 44 | |||
| 45 | The username to connect to the database | ||
| 46 | |||
| 47 | |||
| 48 | =item password | ||
| 49 | |||
| 50 | The password to connect to the database | ||
| 51 | |||
| 52 | =item module | ||
| 53 | |||
| 54 | The package name of the module to use to keep the database schema (e.g. 'MyProject::Schema') | ||
| 55 | |||
| 56 | =back | ||
| 57 | |||
| 58 | =cut | ||
| 59 | |||
| 60 | 39 | has module => (is => 'ro', isa => 'Str', default => 'TaskPipe::GlobalSchema'); | |
| 61 | |||
| 62 | =head1 AUTHOR | ||
| 63 | |||
| 64 | Tom Gracey <tomgracey@gmail.com> | ||
| 65 | |||
| 66 | =head1 COPYRIGHT AND LICENSE | ||
| 67 | |||
| 68 | Copyright (c) Tom Gracey 2018 | ||
| 69 | |||
| 70 | TaskPipe is free software, licensed under | ||
| 71 | |||
| 72 | The GNU Public License Version 3 | ||
| 73 | |||
| 74 | =cut | ||
| 75 | |||
| 76 | |||
| 77 | 39 | __PACKAGE__->meta->make_immutable; | |
| 78 | 39 | 1; | |