Package BioSQL :: Module BioSeqDatabase :: Class Adaptor
[show private | hide private]
[frames | no frames]

Class Adaptor


Method Summary
  __init__(self, conn, dbutils)
  autocommit(self, y)
  close(self)
  commit(self)
  execute(self, sql, args)
Just execute an sql command.
  execute_and_fetch_col0(self, sql, args)
  execute_and_fetchall(self, sql, args)
  execute_one(self, sql, args)
  fetch_dbid_by_dbname(self, dbname)
  fetch_seqid_by_accession(self, dbid, name)
  fetch_seqid_by_display_id(self, dbid, name)
  fetch_seqid_by_identifier(self, dbid, identifier)
  fetch_seqid_by_version(self, dbid, name)
  fetch_seqids_by_accession(self, dbid, name)
  get_subseq_as_string(self, seqid, start, end)
  last_id(self, table)
  list_any_ids(self, sql, args)
Return ids given a SQL statement to select for them.
  list_biodatabase_names(self)
  list_bioentry_display_ids(self, dbid)
  list_bioentry_ids(self, dbid)
  rollback(self)

Method Details

execute(self, sql, args=None)

Just execute an sql command.

list_any_ids(self, sql, args)

Return ids given a SQL statement to select for them.

This assumes that the given SQL does a SELECT statement that returns a list of items. This parses them out of the 2D list they come as and just returns them in a list.

Generated by Epydoc 2.1 on Thu Aug 10 20:01:06 2006 http://epydoc.sf.net