| 1 | package TaskPipe::SchemaManager::Settings_Project; | ||
| 2 | |||
| 3 | 37 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 37 | extends 'TaskPipe::SchemaManager::Settings'; | |
| 5 | 37 | 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 | 37 | 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 | 37 | 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 | 37 | __PACKAGE__->meta->make_immutable; | |
| 80 | 37 | 1; | |