NAME

Test::Chado::Role::HasDBManager

VERSION

version v4.1.1

SYNOPSIS

package MyMooClass; with 'Test::Chado::Role::HasDBManager';

Now implement all the required attributes given below

DESCRIPTION

Moo role based interface to be consumed by backend specific classes for managing database

ATTRIBUTES

dsn

Datasource dsn

dbi_attributes

Extra parameters for database connection, by default RaiseError and AutoCommit are set.

driver_dsn
deploy_by_dbi

Deploy schema using DBI

reset_schema

First drops the schema, the reloads it.

API

Needs implementation

database

Database name. The method _build_database should be implemented by consuming class.

dbh

Database handler, a DBI object. The method <_build_dbh> should be implemented by consuming class.

driver

Name of the database backend. It is being set from dsn value.The method <_build_driver> should be implemented by consuming class.

ddl

Location of the database specific ddl file. Should be implemented by consuming class.

is_dynamic_schema

Indicates whether DBIx::Class::Schema should be dynamic or comes from Bio::Chado::Schema. Should be implemented by consuming class.

deploy_schema

Load the database schema from the ddl file. Should be implemented by consuming class.

get_client_to_deploy

Full path for the command line client. Return undef in case not available. Should be implemented by consuming class.

deploy_by_client

Use backend specific command line tool to deploy the schema. Should be implemented by consuming class.

drop_schema

Drop the loaded schema. Should be implemented by consuming class.

create_database

Create database. Should be implemented by consuming class.

drop_database

Drop database. Should be implemented by consuming class.

Optional

user

Database user

password

Database password

AUTHOR

Siddhartha Basu <biosidd@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Siddhartha Basu.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

3 POD Errors

The following errors were encountered while parsing the POD:

Around line 143:

'=item' outside of any '=over'

Around line 213:

'=item' outside of any '=over'

Around line 221:

You forgot a '=back' before '=head1'