biopython v1.71.0 Bio.DocSQL
Bio.DocSQL: easy access to DB API databases (DEPRECATED).
>>> 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)