Home | Trees | Index | Help |
---|
Module _mysql :: Class result |
|
object
--+
|
result
result(connection, use=0, converter={}) -- Result set from a query.
Creating instances of this class directly is an excellent way to shoot yourself in the foot. If using _mysql.connection directly, use connection.store_result() or connection.use_result() instead. If using MySQLdb.Connection, this is done by the cursor class. Just forget you ever saw this. Forget... FOR-GET...
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__repr__() <==> repr(x) | |
data_seek(n) -- seek to row n of result set | |
Returns the sequence of 7-tuples required by the DB-API for the Cursor.description attribute. | |
The rows are formatted according to how: | |
Returns a tuple of field flags, one for each column in the result. | |
Returns the number of fields (column) in the result. | |
Returns the number of rows in the result set. | |
row_seek(n) -- seek by offset n rows of result set | |
row_tell() -- return the current row number of the result set. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
member_descriptor |
converter = <member 'converter' of '_mysql.result' objec...
|
Method Details |
---|
__init__(...)
|
__new__(T, S, ...)T.__new__(S, ...) -> a new object with type S, a subtype of T
|
__repr__(x)
|
data_seek(n)data_seek(n) -- seek to row n of result set |
describe(...)Returns the sequence of 7-tuples required by the DB-API for the Cursor.description attribute. |
fetch_row(maxrows=..., how=...)The rows are formatted according to how: 0 -- tuples (default) 1 -- dictionaries, key=column or table.column if duplicated 2 -- dictionaries, key=table.column |
field_flags(...)Returns a tuple of field flags, one for each column in the result. |
num_fields(...)Returns the number of fields (column) in the result. |
num_rows(...)Returns the number of rows in the result set. Note that if use=1, this will not return a valid value until the entire result set has been read. |
row_seek(n)row_seek(n) -- seek by offset n rows of result set |
row_tell()row_tell() -- return the current row number of the result set. |
Class Variable Details |
---|
converter
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Mar 3 21:14:16 2007 | http://epydoc.sf.net |