ensembl-hive  2.5
Bio::EnsEMBL::Hive::URLFactory Class Reference

Public Member Functions

public new ()
 
public DESTROY ()
 
public Blessed fetch ()
 
public create_cached_dba ()
 

Detailed Description

Synopsis

$url_string1 = 'mysql://ensadmin:<pass>@ecs2:3362/compara_hive_23c'; # type=hive by default
$url_string2 = 'mysql://ensadmin:<pass>@ecs2:3362/ensembl_compara_22_1;type=compara'
$url_string3 = 'mysql://ensadmin:<pass>@ecs2:3362/ensembl_core_homo_sapiens_22_34;type=core'
$hive_dba = Bio::EnsEMBL::Hive::URLFactory->fetch($url_string1);
$compara_dba = Bio::EnsEMBL::Hive::URLFactory->fetch($url_string2);
$core_dba = Bio::EnsEMBL::Hive::URLFactory->fetch($url_string3);

Definition at line 19 of file URLFactory.pm.

Member Function Documentation

◆ create_cached_dba()

public Bio::EnsEMBL::Hive::URLFactory::create_cached_dba ( )

Undocumented method

Code:
click to view

◆ DESTROY()

public Bio::EnsEMBL::Hive::URLFactory::DESTROY ( )

Undocumented method

Code:
click to view

◆ fetch()

public Blessed Bio::EnsEMBL::Hive::URLFactory::fetch ( )
  Arg[1]     : string $url
  Example    :
$url = 'mysql://user:pass@host:3306/dbname/table_name?tparam_name=tparam_value;type=compara;disconnect_when_inactive=1'
  Description: parses the URL, connects to appropriate DBAdaptor,
               determines appropriate object_adaptor, fetches the object
  Returntype : blessed instance of the object refered to or a DBAdaptor if simple URL
  Exceptions : none
  Caller     : ?
 
Code:
click to view

◆ new()

public Bio::EnsEMBL::Hive::URLFactory::new ( )

Undocumented method

Code:
click to view

The documentation for this class was generated from the following file: