Package Bio :: Module DocSQL
[hide private]
[frames] | no frames]

Module DocSQL

source code

Bio.DocSQL: easy access to DB API databases.

>>> import os
>>> import MySQLdb
>>> from Bio import DocSQL
>>> db=MySQLdb.connect(passwd='', db='test')
>>> class CreatePeople(DocSQL.Create):
...     '''
...     CREATE TEMPORARY TABLE people
...     (id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
...     last_name TINYTEXT,
...     first_name TINYTEXT)
...     '''
...
>>> CreatePeople(connection=db)
CreatePeople(message=Success)

Classes [hide private]
  NoInsertionError
  QueryRow
  Query
SHOW TABLES
  QueryGeneric
  IterationCursor
  QuerySingle
  QueryAll
  QueryAllFirstItem
  Create
  Update
  Insert
Functions [hide private]
 
_check_is_public(name) source code
 
_test(*args, **keywds) source code
Variables [hide private]
  connection = None
hash(x)
  __package__ = 'Bio'