« blib/lib/UR/Namespace/Command/Define.pm
↑ Summary
blib/lib/UR/Namespace/Command/Define/Datasource/Mysql.pm »
| 1 | package UR::Namespace::Command::Define::Datasource::File; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use UR; | ||
| 6 | our $VERSION = "0.46"; # UR $VERSION; | ||
| 7 | |||
| 8 | use IO::File; | ||
| 9 | |||
| 10 | UR::Object::Type->define( | ||
| 11 | class_name => __PACKAGE__, | ||
| 12 | is => 'UR::Namespace::Command::Define::Datasource', | ||
| 13 | has => [ | ||
| 14 | server => { | ||
| 15 | is => 'String', | ||
| 16 | doc => '"server" attribute for this data source, such as a database name', | ||
| 17 | }, | ||
| 18 | singleton => { | ||
| 19 | is => 'Boolean', | ||
| 20 | default_value => 1, | ||
| 21 | doc => 'by default all data sources are singletons, but this can be turned off' | ||
| 22 | }, | ||
| 23 | ], | ||
| 24 | doc => 'Add a file-based data source (not yet implemented)' | ||
| 25 | ); | ||
| 26 | |||
| 27 | sub help_description { | ||
| 28 | "Define a UR datasource connected to a file"; | ||
| 29 | } | ||
| 30 | |||
| 31 | sub execute { | ||
| 32 | my $self = shift; | ||
| 33 | |||
| 34 | $self->warning_message("This command is not yet implemented. See the documentation for UR::DataSource::File for more information about creating file-based data sources"); | ||
| 35 | return; | ||
| 36 | } | ||
| 37 | |||
| 38 | 1; | ||
| 39 |