| Trees | Indices | Help |
|---|
|
|
object --+
|
MySQLDB
Shallow interface to MySQL databases. Some niceties nonetheless. The query() method is an iterator. So:
for result in mySqlObj.query('SELECT * FROM foo'):
print result
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
Create new table, given its name, and schema. The schema is a dict mappingt column names to column types. Example: {'col1' : 'INT', 'col2' : 'TEXT'}
|
Delete table safely. No errors
|
Given a dictionary mapping column names to column values, insert the data into a specified table
|
Given a list of items, return a string that preserves MySQL typing. Example: (10, 'My Poem') ---> '10, "My Poem"' Note that ','.join(map(str,myList)) won't work: (10, 'My Poem') ---> '10, My Poem'
|
Query iterator. Given a query, return one result for each subsequent call.
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Oct 3 14:52:44 2013 | http://epydoc.sourceforge.net |