Table of Contents

Class: BioSQL Bio/sources/__init__.py

Represent a BioSQL-style database to retrieve SeqRecord objects.

XXX This returns a SeqRecord-like object from get() instead of a handle (since BioSQL is not going to give you a handle). This should be standardized.

Base Classes   
Source
Methods   
__init__
_get_db_module
_rawget
  __init__ 
__init__ (
        self,
        name,
        doc="",
        db_host='localhost',
        db_port='',
        db_user='root',
        db_passwd='',
        sql_db='',
        namespace_db='',
        db_type='mysql',
        )

Intialize with information for connecting to the BioSQL db.

  _get_db_module 
_get_db_module ( self,  db_type )

Retrieve the appropriate module to use for connecting to a database

This parses a description of the database and tries to determine which module is appropriate for that database type.

Exceptions   
ValueError( "Postgres not supported yet. Sorry." )
ValueError( "Unknown database type: %s" % db_type )
  _rawget 
_rawget ( self,  params )

Exceptions   
KeyError( "Could not get item with id: %s" % find_id )

Table of Contents

This document was automatically generated on Mon Jul 1 12:03:18 2002 by HappyDoc version 2.0.1