The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

MOBY::Adaptor::moby::DataAccessI - This file may need to be renamed and may not make sense as an interface.

SYNOPSIS

use MOBY::Adaptor::moby::queryapi::mysql # implements this interface def
my $m = MOBY::Adaptor::moby::queryapi::mysql->new(
username => 'user',
password => 'pass',
dbname => 'mobycentral',
port => '3306',
sourcetype => 'DBD::mysql');

DESCRIPTION

The BioMOBY registry data access interface

AUTHORS

Mark Wilkinson markw_at_ illuminae dot com Dennis Wang oikisai _at_ hotmail dot com BioMOBY Project: http://www.biomoby.org

METHODS

new

Usage : my $MOBY = MOBY::Client::Central->new(Registries => \%regrefs)
Function : connect to one or more MOBY-Central
registries for searching
Returns : MOBY::Client::Central object
Args : Registries - optional.
Notes : Each registry must have a different

username

Usage : my $un = $API->username($arg)
Function : get/set username (if required)
Returns : String (username)
Args : String (username) - optional.

password

Usage : my $un = $API->password($arg)
Function : get/set password (if required)
Returns : String (password)
Args : String (password) - optional.

dbname

Usage : my $un = $API->dbname($arg)
Function : get/set dbname (if required)
Returns : String (dbname)
Args : String (dbname) - optional.

port

Usage : my $un = $API->port($arg)
Function : get/set port (if required)
Returns : String (port)
Args : String (port) - optional.

proxy

Usage : my $un = $API->proxy($arg)
Function : get/set proxy (if required)
Returns : String (proxy)
Args : String (proxy) - optional.

sourcetype

Usage : my $un = $API->sourcetype($arg)
Function : get/set string name of sourcetype (e.g. mySQL)
Returns : String (sourcetype)
Args : String (sourcetype) - optional.

driver

Usage : my $un = $API->driver($arg)
Function : get/set string name of driver module (e.g. DBD::mySQL)
Returns : String (driver)
Args : String (driver) - optional.

url

Usage : my $un = $API->url($arg)
Function : get/set url (if required)
Returns : String (url)
Args : String (url) - optional.

dbh

Usage : my $un = $API->dbh($arg)
Function : get/set database handle (if required)
Returns : Database handle in whatever object is appropriate for sourcetype
Args : Database handle in whatever object is appropriate for sourcetype